/* Giriş / kayıt sayfaları (/giris/, /kayit/) — template-parts/hesap/hesap-sayfasi.php */
:root {
	--hs-ana: #8c181b;
	--hs-ana-koyu: #6f1215;
	--hs-ana-acik: rgba(140, 24, 27, .08);
	--hs-zemin: #faf8f5;
	--hs-kart: #ffffff;
	--hs-yazi: #1f1b18;
	--hs-soluk: #6d655e;
	--hs-cizgi: #e3ddd5;
	--hs-cizgi-koyu: #cfc7bd;
	--hs-iyi: #1f7a4d;
	--hs-hata: #b42318;
	--hs-hata-zemin: #fdf0ee;
	--hs-baslik: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
	:root {
		--hs-ana: #d9474b;
		--hs-ana-koyu: #c23a3e;
		--hs-ana-acik: rgba(217, 71, 75, .14);
		--hs-zemin: #151312;
		--hs-kart: #1e1b19;
		--hs-yazi: #f1ece6;
		--hs-soluk: #a59c93;
		--hs-cizgi: #34302c;
		--hs-cizgi-koyu: #4a4540;
		--hs-iyi: #4cc38a;
		--hs-hata: #ff8a80;
		--hs-hata-zemin: #2c1a18;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.hs-govde {
	background: var(--hs-zemin);
	color: var(--hs-yazi);
	font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--hs-ana); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

.hs { display: flex; min-height: 100vh; min-height: 100dvh; }

/* ---------- Sol panel: kayan kitap kapakları ---------- */
.hs-panel {
	position: relative;
	flex: 0 0 44%;
	max-width: 640px;
	overflow: hidden;
	background: #5e0f12;
	color: #fff;
}
.hs-raflar {
	position: absolute;
	inset: -10% -18%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	transform: rotate(-8deg);
	opacity: .55;
}
.hs-sutun { display: flex; flex-direction: column; gap: 18px; animation: hs-kay 70s linear infinite; }
.hs-sutun-1 { animation-duration: 90s; animation-direction: reverse; }
.hs-sutun-2 { animation-duration: 80s; }
.hs-sutun img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 8px;
	background: rgba(255, 255, 255, .08);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
@keyframes hs-kay { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .hs-sutun { animation: none; } }
.hs-panel::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(60, 8, 10, .82) 0%, rgba(60, 8, 10, .25) 32%, rgba(60, 8, 10, .3) 58%, rgba(45, 6, 8, .94) 100%);
}
.hs-panel-ust, .hs-panel-yazi { position: absolute; left: 48px; right: 48px; z-index: 1; }
.hs-panel-ust { top: 40px; }
.hs-panel-logo { height: 40px; width: auto; filter: brightness(0) invert(1); }
.hs-panel-ad { font: 600 22px var(--hs-baslik); }
.hs-panel-yazi { bottom: 48px; }
.hs-slogan { margin: 0 0 12px; font: 600 clamp(28px, 2.6vw, 38px)/1.15 var(--hs-baslik); letter-spacing: -.01em; }
.hs-panel-yazi p:last-child { margin: 0; max-width: 380px; color: rgba(255, 255, 255, .82); font-size: 15px; }

/* ---------- Sağ: form ---------- */
.hs-sag {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 24px 24px;
	min-width: 0;
}
.hs-logo { align-self: center; display: none; margin-bottom: 28px; }
.hs-logo img { height: 38px; width: auto; display: block; }
.hs-kutu { width: 100%; max-width: 420px; margin: auto 0; padding: 24px 0; }

.hs-adim h1 {
	margin: 0 0 6px;
	font: 600 32px/1.15 var(--hs-baslik);
	letter-spacing: -.015em;
}
.hs-aciklama { margin: 0 0 26px; color: var(--hs-soluk); }
.hs-aciklama b { color: var(--hs-yazi); font-weight: 600; word-break: break-all; }
.hs-bilgi {
	margin: -10px 0 20px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(31, 122, 77, .1);
	color: var(--hs-iyi);
	font-size: 14px;
}

.hs-form { display: flex; flex-direction: column; gap: 12px; }
.hs-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Yüzen etiketli alan */
.hs-alan { position: relative; }
.hs-alan input {
	width: 100%;
	height: 54px;
	line-height: 24px;
	padding: 22px 18px 6px;
	border: 1px solid var(--hs-cizgi);
	border-radius: 14px;
	background: var(--hs-kart);
	color: var(--hs-yazi);
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.hs-alan input:hover { border-color: var(--hs-cizgi-koyu); }
.hs-alan input:focus { border-color: var(--hs-ana); box-shadow: 0 0 0 3px var(--hs-ana-acik); }
.hs-alan input[aria-invalid="true"] { border-color: var(--hs-hata); }
.hs-alan label {
	position: absolute;
	left: 19px;
	top: 16px;
	color: var(--hs-soluk);
	font-size: 15px;
	pointer-events: none;
	transform-origin: left top;
	transition: transform .15s, color .15s;
}
.hs-alan input:focus + label,
.hs-alan input:not(:placeholder-shown) + label,
.hs-alan input:-webkit-autofill + label { transform: translateY(-9px) scale(.76); }
.hs-alan input:focus + label { color: var(--hs-ana); }
.hs-alan input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--hs-kart) inset; -webkit-text-fill-color: var(--hs-yazi); }

.hs-alan-sifre input { padding-right: 52px; }
.hs-goz {
	position: absolute;
	right: 8px;
	top: 50%;
	width: 38px;
	height: 38px;
	margin-top: -19px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--hs-soluk);
	cursor: pointer;
}
.hs-goz:hover { color: var(--hs-yazi); background: var(--hs-ana-acik); }
.hs-goz svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-goz .hs-goz-kapa, .hs-goz.acik .hs-goz-ac { display: none; }
.hs-goz.acik .hs-goz-kapa { display: block; }

.hs-alan-kullanici input { padding-left: 33px; }
/* @ yalnız yazarken görünür; boşken etiket normal yerinde */
.hs-on-ek { position: absolute; left: 19px; top: 22px; color: var(--hs-soluk); font-size: 15px; line-height: 24px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.hs-alan-kullanici:focus-within .hs-on-ek,
.hs-alan-kullanici:has(input:not(:placeholder-shown)) .hs-on-ek { opacity: 1; }
.hs-ipucu { margin: -6px 4px 0; color: var(--hs-soluk); font-size: 12.5px; }

.hs-kurallar { list-style: none; margin: -4px 4px 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--hs-soluk); }
.hs-kurallar li { display: flex; align-items: center; gap: 6px; transition: color .15s; }
.hs-kurallar li::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1.5px solid var(--hs-cizgi-koyu);
	flex: none;
	transition: all .15s;
}
.hs-kurallar li.tamam { color: var(--hs-iyi); }
.hs-kurallar li.tamam::before {
	border-color: var(--hs-iyi);
	background: var(--hs-iyi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hs-kurallar.uyar li:not(.tamam) { color: var(--hs-hata); }

.hs-davet summary {
	cursor: pointer;
	list-style: none;
	width: max-content;
	padding: 2px 4px;
	color: var(--hs-soluk);
	font-size: 13.5px;
	font-weight: 500;
}
.hs-davet summary::-webkit-details-marker { display: none; }
.hs-davet summary::after { content: " +"; }
.hs-davet[open] summary::after { content: " –"; }
.hs-davet summary:hover { color: var(--hs-yazi); }
.hs-davet .hs-alan { margin-top: 8px; }

.hs-onay { display: flex; align-items: flex-start; gap: 10px; margin: 4px 4px 0; font-size: 13.5px; color: var(--hs-soluk); cursor: pointer; }
.hs-onay input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--hs-ana);
	cursor: pointer;
}
.hs-onay a { font-weight: 600; }
.hs-onay.uyar span { color: var(--hs-hata); }

.hs-sag-hiza { display: flex; justify-content: flex-end; margin-top: -4px; }
.hs-link {
	padding: 2px 4px;
	border: 0;
	background: none;
	color: var(--hs-ana);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.hs-link:hover { text-decoration: underline; }

.hs-hata {
	margin: 2px 0 0;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--hs-hata-zemin);
	color: var(--hs-hata);
	font-size: 14px;
}

.hs-dugme {
	position: relative;
	height: 52px;
	margin-top: 6px;
	border: 0;
	border-radius: 999px;
	background: var(--hs-ana);
	color: #fff;
	font: inherit;
	font-size: 15.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, transform .05s, opacity .15s;
}
.hs-dugme:hover { background: var(--hs-ana-koyu); }
.hs-dugme:active { transform: scale(.99); }
.hs-dugme:focus-visible { outline: 3px solid var(--hs-ana-acik); outline-offset: 2px; }
.hs-dugme[disabled] { opacity: .6; cursor: default; }
.hs-dugme.yukleniyor { color: transparent; }
.hs-dugme.yukleniyor::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2.5px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hs-don .7s linear infinite;
}
@keyframes hs-don { to { transform: rotate(360deg); } }
.hs-dugme-ikincil { width: 100%; background: transparent; color: var(--hs-yazi); border: 1px solid var(--hs-cizgi-koyu); }
.hs-dugme-ikincil:hover { background: var(--hs-ana-acik); }
.hs-dugme-ikincil.yukleniyor::after { border-color: var(--hs-cizgi); border-top-color: var(--hs-ana); }

.hs-gecis { margin: 22px 0 0; text-align: center; color: var(--hs-soluk); font-size: 14.5px; }

/* E-posta doğrulama adımı */
.hs-adim-orta { text-align: center; }
.hs-zarf {
	width: 68px;
	height: 68px;
	margin: 0 auto 20px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--hs-ana-acik);
	color: var(--hs-ana);
}
.hs-zarf svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hs-not { margin: -12px 0 22px; color: var(--hs-soluk); font-size: 13.5px; }

.hs-dip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	padding-top: 16px;
	color: var(--hs-soluk);
	font-size: 12.5px;
}
.hs-dip a { color: inherit; font-weight: 500; }

.hs-adim { animation: hs-gel .25s ease-out; }
@keyframes hs-gel { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Dar ekran ---------- */
@media (max-width: 960px) {
	.hs-panel { display: none; }
	.hs-logo { display: block; }
	.hs-sag { padding: 28px 16px 20px; }
	.hs-kutu { margin: 0; padding-top: 8px; }
}
@media (max-width: 420px) {
	.hs-adim h1 { font-size: 28px; }
	.hs-ikili { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
	.hs-logo img { filter: brightness(0) invert(1); opacity: .92; }
}
