/* =============================================================
   AQUA MANGA — Login / Register / Reset modal (UTOON-style)
   Backend untouched. This is pure UI on WP-Manga's modal markup.
   ============================================================= */

/* ── Backdrop ── */
.modal-backdrop,
.modal-backdrop.show {
	background: rgba(4, 6, 12, 0.82) !important;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* ── Modal shell ── */
.aqua-auth-modal .modal-dialog {
	max-width: 420px !important;
	width: calc(100% - 32px) !important;
	margin: 28px auto !important;
}
.aqua-auth-card {
	background: linear-gradient(180deg, #15161d 0%, #0e0f15 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 22px !important;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65),
	            0 0 0 1px rgba(72, 202, 228, 0.04) !important;
	overflow: hidden;
	color: #fff !important;
	width: 100% !important;
}
/* Force the auth body + form + every field to full width (Madara/Bootstrap
   collapse them to content-width on desktop otherwise) */
.aqua-auth {
	width: 100% !important;
	max-width: 100% !important;
}
.aqua-auth__form,
.aqua-auth__field,
.aqua-auth__input-wrap,
.aqua-auth__tabs {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}
.aqua-auth__input-wrap { display: flex !important; }
.aqua-auth__input {
	flex: 1 1 auto !important;
	min-width: 0 !important;
}
/* Madara wraps forms in #login/#sign-up/#reset with class .login — these
   have a fixed/narrow width in the parent theme. Force full width. */
.aqua-auth-card #login.login,
.aqua-auth-card #sign-up.login,
.aqua-auth-card #reset.login,
.aqua-auth-card .login {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
}
.aqua-auth-card__header {
	border: none !important;
	padding: 10px 14px 0 !important;
	min-height: 0 !important;
	display: flex;
	justify-content: flex-end;
}
.aqua-auth__close {
	background: rgba(255, 255, 255, 0.06) !important;
	border: none !important;
	color: rgba(255, 255, 255, 0.7) !important;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	opacity: 1 !important;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	text-shadow: none !important;
}
.aqua-auth__close:hover {
	background: rgba(231, 76, 60, 0.2) !important;
	color: #ff6b5e !important;
}
.aqua-auth-card .modal-body {
	padding: 6px 30px 30px !important;
}

/* ── Brand ── */
.aqua-auth__brand {
	text-align: center;
	margin-bottom: 22px;
}
.aqua-auth__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid rgba(72, 202, 228, 0.3);
	box-shadow: 0 4px 18px rgba(72, 202, 228, 0.25);
	margin-bottom: 14px;
}
.aqua-auth__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.aqua-auth__title {
	margin: 0 0 6px !important;
	font-size: 26px !important;
	font-weight: 800 !important;
	color: #fff !important;
	letter-spacing: -0.02em;
}
.aqua-auth__sub {
	margin: 0 !important;
	font-size: 14px !important;
	color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Tab switch (Log in / Register) ── */
.aqua-auth__tabs {
	display: flex;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 14px;
	padding: 5px;
	gap: 4px;
	margin-bottom: 22px;
}
.aqua-auth__tab {
	flex: 1;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	font-size: 15px;
	font-weight: 700;
	padding: 11px 0;
	border-radius: 10px;
	cursor: pointer;
	transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}
.aqua-auth__tab:hover { color: #fff; }
.aqua-auth__tab.is-active {
	color: #fff;
	background: linear-gradient(135deg, #6d4bff 0%, #8b5cff 100%);
	box-shadow: 0 6px 18px rgba(124, 76, 255, 0.4);
}

/* ── Messages ── */
.aqua-auth__msg {
	margin: 0 0 14px !important;
	padding: 0;
	font-size: 13px;
	color: #ff6b5e !important;
	text-align: center;
	min-height: 0;
	background: none !important;
	border: none !important;
}
.aqua-auth__msg:empty { display: none; }
.aqua-auth__msg--err { color: #ff6b5e !important; }

/* ── Form / fields ── */
.aqua-auth__form { margin: 0; }
.aqua-auth__field { margin-bottom: 16px; }
.aqua-auth__label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 8px;
}
.aqua-auth__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.aqua-auth__icon {
	position: absolute;
	left: 15px;
	color: rgba(255, 255, 255, 0.35);
	pointer-events: none;
	z-index: 1;
}
.aqua-auth__input {
	width: 100% !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 12px !important;
	color: #fff !important;
	font-size: 15px !important;
	padding: 14px 16px 14px 44px !important;
	height: auto !important;
	box-shadow: none !important;
	transition: border-color 0.18s, background 0.18s;
	box-sizing: border-box;
}
.aqua-auth__input::placeholder { color: rgba(255, 255, 255, 0.3) !important; }
.aqua-auth__input:focus {
	border-color: rgba(124, 76, 255, 0.6) !important;
	background: rgba(255, 255, 255, 0.06) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(124, 76, 255, 0.15) !important;
}
/* eye toggle */
.aqua-auth__eye {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	transition: color 0.15s;
	z-index: 1;
}
.aqua-auth__eye:hover { color: rgba(255, 255, 255, 0.75); }
.aqua-auth__eye.is-on { color: #8b5cff; }

/* confirm-password hint */
.aqua-auth__hint {
	display: block;
	font-size: 12px;
	margin-top: 6px;
	min-height: 14px;
}
.aqua-auth__hint.is-ok  { color: #4ade80; }
.aqua-auth__hint.is-err { color: #ff6b5e; }

/* ── Row: remember + forgot ── */
.aqua-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 6px 0 20px;
	gap: 10px;
}
.aqua-auth__remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
}
.aqua-auth__remember input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: #8b5cff;
	cursor: pointer;
	margin: 0;
}
.aqua-auth__link {
	color: #8b5cff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: color 0.15s;
}
.aqua-auth__link:hover { color: #a884ff !important; }

/* ── Submit ── */
.aqua-auth__submit-wrap { margin: 4px 0 0; }
.aqua-auth__submit {
	width: 100%;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, #6d4bff 0%, #8b5cff 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	padding: 15px 0;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(124, 76, 255, 0.4);
	transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
	-webkit-appearance: none;
	appearance: none;
}
.aqua-auth__submit:hover {
	filter: brightness(1.08);
	box-shadow: 0 10px 30px rgba(124, 76, 255, 0.55);
}
.aqua-auth__submit:active { transform: translateY(1px); }

/* ── Footer links ── */
.aqua-auth__foot {
	text-align: center;
	margin: 20px 0 0 !important;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5) !important;
}
.aqua-auth__foot .aqua-auth__link { font-weight: 700; }
.aqua-auth__terms {
	text-align: center;
	margin: 12px 0 0 !important;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.35) !important;
	line-height: 1.5;
}
.aqua-auth__terms a { color: rgba(139, 92, 255, 0.85); text-decoration: none; }

/* recaptcha spacing */
.aqua-auth__captcha { margin: 0 0 14px; display: flex; justify-content: center; }
.aqua-auth__captcha:empty { display: none; }

/* loading spinner from WP-Manga */
.modal-loading-screen {
	position: absolute;
	inset: 0;
	background: rgba(14, 15, 21, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 22px;
	z-index: 10;
	color: #8b5cff;
}

/* ── Mobile ── */
@media (max-width: 480px) {
	.aqua-auth-modal .modal-dialog {
		margin: 12px;
		max-width: none;
	}
	.aqua-auth-card .modal-body { padding: 6px 20px 24px !important; }
	.aqua-auth__title { font-size: 23px !important; }
}

/* =============================================================
   wp-login.php — strip WordPress branding, apply dark theme
   ============================================================= */
body.login {
	background: linear-gradient(180deg, #0e0f15 0%, #15161d 100%) !important;
}
.login h1 a {
	background-image: none !important;
	width: auto !important;
	height: auto !important;
	text-indent: 0 !important;
	overflow: visible !important;
	font-size: 28px !important;
	font-weight: 800 !important;
	color: #fff !important;
	line-height: 1.2 !important;
}
/* hide "Powered by WordPress" + language switcher */
.login #backtoblog,
.login #nav a[href*="wordpress.org"],
.login .privacy-policy-page-link ~ *,
#login .message:first-child,
.login #language-switcher {
	/* keep nav links but neutralize WP text below */
}
.login #footer,
.login .wp-core-ui .button-wordpress,
p#backtoblog + p,
.login #nav { }
.login form {
	background: linear-gradient(180deg, #15161d 0%, #0e0f15 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 18px !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
	padding: 26px 24px !important;
}
.login label { color: rgba(255,255,255,0.8) !important; font-weight: 600 !important; }
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	background: rgba(255,255,255,0.04) !important;
	border: 1px solid rgba(255,255,255,0.12) !important;
	border-radius: 10px !important;
	color: #fff !important;
	padding: 12px 14px !important;
}
.login input:focus {
	border-color: rgba(124,76,255,0.6) !important;
	box-shadow: 0 0 0 3px rgba(124,76,255,0.15) !important;
}
.login .button-primary,
.login #wp-submit {
	background: linear-gradient(135deg, #6d4bff 0%, #8b5cff 100%) !important;
	border: none !important;
	border-radius: 10px !important;
	box-shadow: 0 6px 18px rgba(124,76,255,0.4) !important;
	text-shadow: none !important;
	font-weight: 700 !important;
	padding: 8px 20px !important;
	height: auto !important;
}
.login #nav a,
.login #backtoblog a {
	color: rgba(139,92,255,0.85) !important;
}
.login #nav a:hover,
.login #backtoblog a:hover {
	color: #a884ff !important;
}
/* Hide the WordPress logo link text fallback cleanly via brand name */
