/* ==========================================================================
   Little Grims of Horror · login.css
   Το wp-login.php στο ύφος του site (includes/credentials-styles.php).
   Αυτοτελές: το wp-login.php δεν φορτώνει το style.css. Τιμές από το style.css.
   ========================================================================== */

/* Γραμματοσειρές: Caudex 700 (τίτλος), Alegreya Sans 400/700 (τα υπόλοιπα) */
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../webfonts/alegreya-sans-400-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../webfonts/alegreya-sans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../webfonts/alegreya-sans-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../webfonts/alegreya-sans-700-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../webfonts/alegreya-sans-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../webfonts/alegreya-sans-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caudex'; font-style: normal; font-weight: 700; font-display: swap; src: url('../webfonts/caudex-700-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Caudex'; font-style: normal; font-weight: 700; font-display: swap; src: url('../webfonts/caudex-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caudex'; font-style: normal; font-weight: 700; font-display: swap; src: url('../webfonts/caudex-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--lg-bg: #0b0807;
	--lg-gold: oklch(0.8 0.11 82);
	--lg-gold-text: oklch(0.82 0.11 80);
	--lg-gold-line: oklch(0.75 0.11 80);
	--lg-red: oklch(0.66 0.21 30);
	--lg-text: oklch(0.93 0.02 70);
	--lg-head: oklch(0.95 0.03 85);
	--lg-muted: oklch(0.7 0.03 60);
	--lg-line: oklch(0.62 0.1 75 / .35);
	--lg-line-soft: oklch(0.62 0.1 75 / .14);
	--lg-field: oklch(0.6 0.1 60 / .7);
	--lg-card: linear-gradient(180deg, oklch(0.16 0.035 25), #0c0807);
	--lg-red-fill: radial-gradient(ellipse at 50% 0%, oklch(0.66 0.22 32), transparent 70%), linear-gradient(180deg, oklch(0.5 0.21 27), oklch(0.3 0.14 25) 60%, oklch(0.22 0.1 25));
	--lg-gold-frame: linear-gradient(180deg, oklch(0.92 0.1 88), oklch(0.62 0.11 70) 50%, oklch(0.85 0.11 82));
	--lg-hex: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
	/* Γωνίες κάρτας (όπως το .card του site): η μάσκα κρατάει 18×18 σε κάθε γωνία */
	--lg-corners:
		linear-gradient(#000 0 0) left top / 18px 18px no-repeat,
		linear-gradient(#000 0 0) right top / 18px 18px no-repeat,
		linear-gradient(#000 0 0) left bottom / 18px 18px no-repeat,
		linear-gradient(#000 0 0) right bottom / 18px 18px no-repeat;
}


/* ---------- Σελίδα ---------- */

html {
	background: var(--lg-bg);
}
body.login {
	min-width: 0;
	min-height: 100vh;
	margin: 0;
	padding: 48px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background:
		radial-gradient(ellipse at 50% 0%, oklch(0.34 0.14 27 / .7), transparent 65%),
		radial-gradient(ellipse at 50% 100%, oklch(0.3 0.12 27 / .3), transparent 60%),
		var(--lg-bg);
	background-attachment: fixed;
	color: var(--lg-text);
	font-family: 'Alegreya Sans', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body.login *,
body.login *::before,
body.login *::after {
	box-sizing: border-box;
}
.login a {
	color: var(--lg-gold-text);
	text-decoration: none;
	transition: color .2s;
}
.login a:hover,
.login a:active {
	color: #fff;
}
.login a:focus {
	color: #fff;
	box-shadow: none;
	outline: 2px solid var(--lg-gold);
	outline-offset: 2px;
}


/* ---------- Κάρτα ---------- */

#login {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: auto;
	padding: 40px 36px 28px;
	background: var(--lg-card);
	border: 1px solid var(--lg-line);
	box-shadow: 0 40px 90px -30px #000, 0 0 70px oklch(0.45 0.2 27 / .22);
}
/* Χρυσές γωνίες */
#login::before {
	content: "";
	position: absolute;
	inset: -1px;
	border: 2px solid var(--lg-gold);
	pointer-events: none;
	-webkit-mask: var(--lg-corners);
	mask: var(--lg-corners);
}

/* Έμβλημα + όνομα του guild + γραμμή–ρόμβος–γραμμή */
#login h1,
.login h1.wp-login-logo {
	position: relative;
	margin: 0 0 26px;
	padding: 0 0 24px;
	text-align: center;
}
#login h1 a,
.login h1.wp-login-logo a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	overflow: visible;
	text-indent: 0;
	background: none;
	font-family: Caudex, serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lg-head);
	text-shadow: 0 2px 18px #000;
}
#login h1 a::before {
	content: "";
	display: block;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #070407 url(../assets/logo.webp) center / 150% no-repeat;
	box-shadow: 0 0 0 1px oklch(0.8 0.11 82 / .45), 0 0 28px oklch(0.55 0.2 27 / .75);
	transition: box-shadow .3s;
}
#login h1 a:hover {
	color: #fff;
}
#login h1 a:hover::before {
	box-shadow: 0 0 0 1px var(--lg-gold), 0 0 36px oklch(0.6 0.22 30 / .9);
}
#login h1 a:focus {
	outline-offset: 6px;
}
#login h1::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 148px;
	height: 8px;
	transform: translateX(-50%);
	background:
		linear-gradient(var(--lg-gold-line), var(--lg-gold-line)) left center / 60px 1px no-repeat,
		linear-gradient(var(--lg-gold-line), var(--lg-gold-line)) right center / 60px 1px no-repeat;
}
#login h1::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	transform: rotate(45deg);
	background: var(--lg-gold-line);
}


/* ---------- Σύνδεση με Discord (για τα μέλη) ---------- */

#login .grims-lg-discord {
	margin: 0 0 24px;
}
#login .grims-lg-discord a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 16px;
	border: 1px solid oklch(0.62 0.1 75 / .55);
	background: #0b0807cc;
	font-weight: 700;
	font-size: 15px;
	color: var(--lg-head);
	transition: border-color .2s, color .2s;
}
#login .grims-lg-discord a span {
	color: var(--lg-gold);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
#login .grims-lg-discord a:hover {
	border-color: var(--lg-gold);
	color: #fff;
}
#login .grims-lg-discord a:hover span {
	transform: translateX(4px);
}


/* ---------- Μηνύματα ---------- */

#login .message,
#login .notice,
#login .success,
#login #login_error {
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid var(--lg-line);
	border-left: 3px solid var(--lg-gold);
	background: #0b0807cc;
	box-shadow: none;
	font-size: 15px;
	line-height: 1.5;
	color: var(--lg-text);
}
#login #login_error,
#login .notice-error {
	border-left-color: var(--lg-red);
}
#login .message p,
#login .notice p {
	margin: 0;
}


/* ---------- Φόρμα ---------- */

.login form,
#login form {
	margin: 0;
	padding: 0;
	overflow: visible;
	background: transparent;
	border: 0;
	box-shadow: none;
	font-weight: 400;
}
#login form p,
#login form .user-pass-wrap {
	margin: 0 0 18px;
}
#login label {
	display: block;
	margin: 0 0 6px;
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: oklch(0.86 0.05 70);
}
#login form .input,
#login input[type="text"],
#login input[type="email"],
#login input[type="password"] {
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 13px 14px;
	border: 1px solid var(--lg-field);
	border-radius: 0;
	background: #0b0807cc;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: #fff;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
#login form .input:focus,
#login input[type="text"]:focus,
#login input[type="email"]:focus,
#login input[type="password"]:focus {
	border-color: oklch(0.82 0.11 82);
	box-shadow: 0 0 0 3px oklch(0.82 0.11 82 / .25);
}
#login input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 40px #120b0a inset;
	-webkit-text-fill-color: #fff;
	caret-color: #fff;
}

/* Κωδικός: το «μάτι» του WordPress μέσα στο πεδίο */
#login .wp-pwd {
	position: relative;
}
#login .wp-pwd .input,
#login .wp-pwd input[type="password"],
#login .wp-pwd input[type="text"] {
	padding-right: 50px;
}
#login .button.wp-hide-pw {
	position: absolute;
	top: 0;
	right: 0;
	width: 46px;
	height: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--lg-gold);
}
#login .button.wp-hide-pw:hover,
#login .button.wp-hide-pw:focus {
	background: transparent;
	color: #fff;
	box-shadow: none;
	outline: 2px solid var(--lg-gold);
	outline-offset: -4px;
}
#login .button.wp-hide-pw .dashicons {
	top: 0;
	width: 20px;
	height: 20px;
	font-size: 20px;
}

/* «Να με θυμάσαι»: checkbox με χρυσό ρόμβο */
#login .forgetmenot {
	float: none;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
}
#login .forgetmenot label {
	display: inline;
	margin: 0;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--lg-muted);
}
#login input[type="checkbox"] {
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin: 0;
	border: 1px solid var(--lg-field);
	border-radius: 0;
	background: #0b0807;
	box-shadow: none;
}
#login input[type="checkbox"]:focus {
	border-color: var(--lg-gold);
	box-shadow: 0 0 0 3px oklch(0.82 0.11 82 / .25);
}
#login input[type="checkbox"]:checked::before {
	content: "";
	float: none;
	display: block;
	width: 8px;
	height: 8px;
	margin: 3px auto 0;
	background: var(--lg-gold);
	transform: rotate(45deg);
}

/* Κουμπί: κόκκινο εξάγωνο σε χρυσό πλαίσιο (το πλαίσιο είναι το p.submit) */
#login p.submit:not(.reset-pass-submit) {
	float: none;
	clear: both;
	margin: 0;
	padding: 2px;
	background: var(--lg-gold-frame);
	-webkit-clip-path: var(--lg-hex);
	clip-path: var(--lg-hex);
	transition: filter .3s;
}
#login p.submit:not(.reset-pass-submit):hover {
	filter: brightness(1.12);
}
#login p.submit:not(.reset-pass-submit) .button-primary {
	float: none;
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 14px 24px;
	border: 0;
	border-radius: 0;
	-webkit-clip-path: var(--lg-hex);
	clip-path: var(--lg-hex);
	background: var(--lg-red-fill);
	box-shadow: inset 0 1px 0 #fff3, inset 0 -8px 16px #0006;
	text-shadow: 0 2px 0 #0008, 0 0 18px oklch(0.6 0.22 30 / .6);
	font-family: inherit;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.4;
	letter-spacing: .02em;
	color: #fff8ec;
	cursor: pointer;
}
#login p.submit .button-primary:hover,
#login p.submit .button-primary:focus {
	color: #fff8ec;
	box-shadow: inset 0 1px 0 #fff3, inset 0 -8px 16px #0006;
}
/* Το clip-path κόβει το outline: η εστίαση φαίνεται ως λευκό πλαίσιο */
#login p.submit:not(.reset-pass-submit):focus-within {
	background: #fff;
}
#login p.submit:not(.reset-pass-submit) .button-primary:focus {
	outline: none;
}

/* Νέος κωδικός: δύο κουμπιά (Δημιουργία / Αποθήκευση), απλά, το ένα κάτω από το άλλο */
#login .reset-pass-submit {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
#login .reset-pass-submit .button {
	float: none;
	width: 100%;
	height: auto;
	min-height: 46px;
	margin: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
}
#login .reset-pass-submit .button-primary {
	border: 1px solid var(--lg-gold);
	background: var(--lg-red-fill);
	color: #fff8ec;
	text-shadow: 0 1px 0 #0008;
}
#login .button-secondary:not(.wp-hide-pw),
#login .wp-generate-pw {
	border: 1px solid var(--lg-line);
	border-radius: 0;
	background: #0b0807cc;
	color: var(--lg-gold-text);
	box-shadow: none;
}
#login .button-secondary:not(.wp-hide-pw):hover,
#login .wp-generate-pw:hover {
	border-color: var(--lg-gold);
	background: #0b0807;
	color: #fff;
}
#login #pass-strength-result {
	margin: 8px 0 0;
	border-radius: 0;
}
#login .description,
#login .indicator-hint {
	color: var(--lg-muted);
}


/* ---------- Κάτω γραμμές ---------- */

#login #nav,
#login #backtoblog {
	margin: 18px 0 0;
	padding: 0;
	text-align: center;
	font-size: 14px;
	color: var(--lg-muted);
}
/* Το login.css του WordPress τα βάφει γκρι με ισχυρότερο selector */
.login #nav a,
.login #backtoblog a {
	color: var(--lg-gold-text);
}
.login #nav a:hover,
.login #backtoblog a:hover,
.login #nav a:focus,
.login #backtoblog a:focus {
	color: #fff;
}
#login #backtoblog {
	margin-top: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--lg-line-soft);
}
.login .privacy-policy-page-link {
	margin: 24px 0 0;
	font-size: 14px;
}
.login .privacy-policy-page-link a {
	color: var(--lg-muted);
}


/* ---------- Σύνδεση ξανά μέσα στο admin (interim login) ---------- */

body.interim-login {
	min-height: 0;
	padding: 20px;
}
body.interim-login #login {
	max-width: none;
	box-shadow: none;
}


@media (max-width: 480px) {
	body.login {
		padding: 32px 16px;
	}
	#login {
		padding: 32px 22px 24px;
	}
}
