/* ==========================================================================
   Giriş Yap / Kayıt Ol (bölünmüş ekran)
   ========================================================================== */

.no55-auth-page {
	background: #fff;
}

.auth [hidden] {
	display: none !important;
}

.auth {
	--auth-panel: clamp(380px, 33.333vw, 600px);
	--auth-ink: #0d0d0d;
	--auth-field: #f7f6f3;
	--auth-line: #d7d6d3;
	--auth-muted: #747474;
	--auth-danger: #c0392b;
	display: grid;
	grid-template-columns: var(--auth-panel) minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100dvh;
	color: var(--auth-ink);
	font-size: 13px;
	line-height: 1.5;
}

/* Sol panel ---------------------------------------------------------------- */
.auth__panel {
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	padding: 28px clamp(24px, 3.2vw, 48px) 40px;
	overflow-y: auto;
	background: #fff;
}

.auth__logo {
	flex: none;
}

.auth__logo .site-logo__text {
	font-size: 26px;
}

.auth__view {
	width: 100%;
	max-width: 440px;
	padding-top: 46px;
}

.auth__title {
	margin: 0 0 30px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--auth-ink);
}

.auth__title--sm {
	margin: 0;
	font-size: 20px;
}

.auth__head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
}

.auth__back {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-left: -6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--auth-ink);
	cursor: pointer;
}

.auth__back:hover {
	background: var(--auth-field);
}

.auth__lead {
	margin: 0 0 22px;
	font-size: 12.5px;
	line-height: 1.55;
}

/* Alanlar ------------------------------------------------------------------ */
.auth-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.auth-step {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.auth-form--register {
	gap: 14px;
}

.auth-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.auth-field {
	position: relative;
	display: block;
	min-width: 0;
}

.auth-field__label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #565656;
}

.auth .auth-field input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: var(--auth-field);
	box-shadow: none;
	color: var(--auth-ink);
	font: inherit;
	font-size: 13px;
	-webkit-appearance: none;
	appearance: none;
}

.auth .auth-field input::placeholder {
	color: #929292;
	opacity: 1;
}

.auth .auth-field input:focus {
	outline: none;
	box-shadow: inset 0 0 0 1.5px var(--auth-ink);
}

.auth .auth-field input.is-invalid {
	box-shadow: inset 0 0 0 1.5px var(--auth-danger);
}

.auth-field--password input {
	padding-right: 48px;
}

.auth-eye {
	position: absolute;
	right: 0;
	bottom: 0;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #565656;
	cursor: pointer;
}

.auth-eye:hover {
	color: var(--auth-ink);
}

.auth-eye .auth-eye__on {
	display: none;
}

.auth-eye[aria-pressed="true"] .auth-eye__on {
	display: block;
}

.auth-eye[aria-pressed="true"] .auth-eye__off {
	display: none;
}

.auth-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.auth-identity {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 0 16px;
	background: var(--auth-field);
}

.auth-identity__value {
	min-width: 0;
	overflow: hidden;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.auth-link {
	flex: none;
	padding: 0;
	border: 0;
	background: none;
	color: var(--auth-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.auth-forgot {
	align-self: center;
	color: var(--auth-ink);
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
}

/* Düğmeler ----------------------------------------------------------------- */
.auth .auth-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 52px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}

.auth .auth-btn--solid {
	background: var(--auth-ink);
	color: #fff;
}

.auth .auth-btn--solid:hover:not(:disabled) {
	background: #000;
}

.auth .auth-btn--solid:disabled {
	background: #e4e2e0;
	color: #686868;
	cursor: not-allowed;
}

.auth .auth-btn--outline {
	border-color: var(--auth-ink);
	background: #fff;
	color: var(--auth-ink);
}

.auth .auth-btn--outline:hover {
	background: var(--auth-field);
}

.auth .auth-btn.is-loading {
	opacity: .7;
	pointer-events: none;
}

.auth .auth-btn--social {
	border-color: var(--auth-line);
}

.auth-btn__icon {
	position: absolute;
	left: 26px;
	display: grid;
	place-items: center;
}

/* Ya da + sosyal ----------------------------------------------------------- */
.auth-or {
	position: relative;
	margin: 26px 0 22px;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
}

.auth-or::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	border-top: 1px solid var(--auth-line);
}

.auth-or span {
	position: relative;
	padding: 0 12px;
	background: #fff;
}

.auth-social {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.auth-social__msg {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--auth-muted);
}

.auth-legal {
	margin: 16px 0 0;
	font-size: 11px;
	line-height: 1.55;
}

.auth-legal--center {
	margin-top: 14px;
}

.auth-legal a {
	color: var(--auth-ink);
}

/* Onay satırları ------------------------------------------------------------ */
.auth-consent {
	border-bottom: 1px solid var(--auth-line);
}

.auth-consent__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.auth-check {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	font-size: 12px;
	cursor: pointer;
}

.auth-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.auth-check__box {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
	border: 1px solid var(--auth-ink);
	background: #fff;
}

.auth-check input:checked + .auth-check__box {
	background: var(--auth-ink);
}

.auth-check input:checked + .auth-check__box::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.auth-check input:focus-visible + .auth-check__box {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.auth-check.is-invalid .auth-check__box {
	border-color: var(--auth-danger);
	box-shadow: 0 0 0 1px var(--auth-danger);
}

.auth-consent__toggle {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--auth-ink);
	cursor: pointer;
}

.auth-consent__toggle svg {
	transition: transform .2s;
}

.auth-consent__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.auth-consent__body {
	padding: 0 0 12px;
	font-size: 11.5px;
	line-height: 1.6;
	color: #565656;
}

.auth-consent__body p {
	margin: 0;
}

/* Mesajlar ------------------------------------------------------------------ */
.auth-msg {
	margin: 2px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--auth-danger);
}

.auth-msg.is-ok {
	color: #1a7f45;
}

/* Sağ medya ----------------------------------------------------------------- */
.auth__media {
	position: relative;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background: #e8e6e4;
}

.auth-media {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .6s ease;
}

.auth-media.is-active {
	opacity: 1;
}

.auth .auth-media__video,
.auth .auth-media__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.auth .auth-media__img {
	opacity: 0;
	transition: opacity 1s ease;
}

.auth .auth-media__img.is-active {
	z-index: 2;
	opacity: 1;
}

/* Giden görsel, yenisi tamamen görünene kadar altta kalır (geçişte boşluk olmasın). */
.auth .auth-media__img.is-prev {
	z-index: 1;
	opacity: 1;
	transition: none;
}

/* Küçük ekran: medya gizlenir, form tam genişlik --------------------------- */
@media (max-width: 900px) {
	.auth {
		grid-template-columns: minmax(0, 1fr);
	}

	.auth__media {
		display: none;
	}

	.auth__panel {
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		padding: 20px 20px 32px;
		overflow: visible;
	}

	.auth__view {
		max-width: none;
		padding-top: 32px;
	}

	.auth__logo .site-logo__text {
		font-size: 23px;
	}
}

/* Geçiş animasyonları (fade) ------------------------------------------------- */
@keyframes auth-fade-up {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

@keyframes auth-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.auth__panel {
	animation: auth-fade-in .5s ease both;
}

.auth__view {
	animation: auth-fade-up .45s cubic-bezier(.22, .61, .36, 1) both;
	transition: opacity .18s ease, transform .18s ease;
}

.auth__view.is-leaving {
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
}

.auth-step,
.auth-msg,
.auth-social__msg,
.auth-consent__body {
	animation: auth-fade-up .35s ease both;
}

.auth__media {
	animation: auth-fade-in .8s ease both;
}

@media (prefers-reduced-motion: reduce) {
	.auth__panel,
	.auth__view,
	.auth-step,
	.auth-msg,
	.auth-social__msg,
	.auth-consent__body,
	.auth__media {
		animation: none;
		transition: none;
	}
}
