/*
 * ExamVillage — Auth Pages Stylesheet
 * File: assets/css/ev-auth.css
 *
 * Pages: /mock-test-login/  (page-mock-test-login.php — split hero layout)
 *        /mock-test-register/ (existing form markup, restyled below)
 *
 * Shared tokens, buttons (.mt-btn), checkbox (.mt-check) and icons (.mt-i)
 * come from mock-test.css, which is also enqueued on these pages.
 *
 * @package ExamVillage
 * @version 3.0
 */

/* ══════════════════════════════════════════════════════════
   GP OVERRIDES — full-width canvas
══════════════════════════════════════════════════════════ */
body.ev-auth-page .site-content { display: block !important; background: var(--mt-bg, #F4F7FC); }
body.ev-auth-page #primary,
body.ev-auth-page .content-area { width: 100% !important; max-width: 100% !important; float: none !important; padding: 0 !important; }
body.ev-login-page .inside-article,
body.ev-login-page .entry-content,
body.ev-login-page .site-main { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
body.ev-login-page .separate-containers .inside-article { background: transparent !important; box-shadow: none !important; }
body.ev-login-page .entry-header,
body.ev-login-page .page-header { display: none !important; }


/* ══════════════════════════════════════════════════════════
   LOGIN — layout
══════════════════════════════════════════════════════════ */
.mt-login {
	font-family: var(--mt-body, 'DM Sans', system-ui, sans-serif);
	color: var(--mt-ink, #0B1D3A);
	background: var(--mt-bg, #F4F7FC);
}
.mt-login [hidden] { display: none !important; }

.mt-login__top {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	min-height: 690px;
}

/* Left hero */
.mt-login__hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(560px 360px at 18% 12%, rgba(66,128,238,.35), transparent 70%),
		linear-gradient(135deg, #0A2A6E 0%, #0C3C93 60%, #0A3280 100%);
	display: flex; align-items: center;
	padding: 64px 46px 56px;
}
.mt-login__art {
	position: absolute; right: -40px; bottom: -10px; width: min(78%, 560px); height: auto;
	opacity: .38; pointer-events: none; filter: blur(.4px);
}
.mt-login__hero-in { position: relative; z-index: 1; max-width: 600px; width: 100%; }

.mt-login__title { margin: 0 0 20px; font-family: var(--mt-font, 'Sora', sans-serif); color: #fff; line-height: 1.1; }
.mt-login__t1 { display: block; font-size: 3.5rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.mt-login__t2 { display: block; font-size: 2.1rem; font-weight: 600; }
.mt-login__lead { margin: 0 0 38px; font-size: 1.125rem; line-height: 1.6; color: rgba(255,255,255,.9); max-width: 520px; }

.mt-login__feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.mt-login__feats li { display: flex; align-items: center; gap: 18px; }
.mt-login__feats span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 15.5px; color: rgba(255,255,255,.82); line-height: 1.4; }
.mt-login__feats strong { font: 600 19px var(--mt-body, sans-serif); color: #fff; }

.mt-auth-ico {
	width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.mt-auth-ico--green  { background: linear-gradient(135deg, #2BC27A, #139A5B); }
.mt-auth-ico--blue   { background: linear-gradient(135deg, #4C94FF, #1B6CF2); }
.mt-auth-ico--orange { background: linear-gradient(135deg, #FFB43D, #F28A0F); }
.mt-auth-ico--purple { background: linear-gradient(135deg, #9A6BF0, #6F3FD0); }
.mt-auth-ico--soft-blue   { background: #E3EDFF; color: #0B5FFF; width: 68px; height: 68px; }
.mt-auth-ico--soft-green  { background: #DDF3E7; color: #139A5B; width: 68px; height: 68px; }
.mt-auth-ico--soft-purple { background: #EDE6FB; color: #6F3FD0; width: 68px; height: 68px; }

/* Right panel + card */
.mt-login__panel { display: flex; align-items: center; justify-content: center; padding: 34px 28px; }
.mt-auth-card {
	width: 100%; max-width: 540px; background: #fff; border-radius: 16px;
	padding: 30px 31px 34px;
	box-shadow: 0 10px 40px rgba(11,29,58,.1);
	display: flex; flex-direction: column;
}
.mt-auth-card__logo {
	width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px;
	display: flex; align-items: center; justify-content: center;
	background: #E3EDFF; color: #0B5FFF;
}
.mt-auth-card__title { font: 800 1.675rem/1.2 var(--mt-font, sans-serif); text-align: center; margin: 0 0 8px; color: var(--mt-ink, #0B1D3A); }
.mt-auth-card__sub { text-align: center; margin: 0 0 26px; font-size: 16.5px; color: #6B82A4; }

/* Form */
.mt-auth-form { display: flex; flex-direction: column; gap: 18px; }
.mt-auth-alert {
	padding: 12px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; line-height: 1.45;
	background: #FDECEE; color: #B01E3A; border: 1px solid #F7C9D1;
}
.mt-af label { display: block; font: 700 15.5px var(--mt-body, sans-serif); margin-bottom: 8px; color: var(--mt-ink, #0B1D3A); }
.mt-af__in { position: relative; display: flex; align-items: center; }
.mt-af__ico { position: absolute; left: 15px; display: inline-flex; color: #1E2C50; pointer-events: none; }
.mt-af__in input {
	width: 100%; height: 54px; padding: 0 48px 0 48px;
	background: #F8FAFD; border: 1.5px solid #D5DFEE; border-radius: 9px;
	font: 16.5px var(--mt-body, sans-serif); color: var(--mt-ink, #0B1D3A);
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.mt-af__in input::placeholder { color: #8493AD; }
.mt-af__in input:focus { outline: none; background: #fff; border-color: #0B5FFF; box-shadow: 0 0 0 3px rgba(11,95,255,.14); }
.mt-af__eye {
	position: absolute; right: 8px; width: 40px; height: 40px; border: 0; background: none;
	display: inline-flex; align-items: center; justify-content: center; color: #1E2C50; border-radius: 8px; cursor: pointer;
}
.mt-af__eye:hover { background: #EEF3FB; }
.mt-af__eye span { display: inline-flex; }

.mt-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt-auth-row .mt-check { padding: 2px 0; font-size: 15.5px; color: var(--mt-ink, #0B1D3A); }
.mt-auth-link { font: 500 15.5px var(--mt-body, sans-serif); color: #0B5FFF; }
.mt-auth-link:hover { text-decoration: underline; }

.mt-auth-form .mt-btn--lg { min-height: 54px; font-size: 17px; }

.mt-auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; color: #4A5A78; font-size: 14px; }
.mt-auth-or::before, .mt-auth-or::after { content: ''; flex: 1; height: 1px; background: #E0E7F2; }
.mt-btn--google { background: #fff; color: var(--mt-ink, #0B1D3A) !important; border-color: #D5DFEE; min-height: 54px; font-size: 17px; font-weight: 600; gap: 12px; }
.mt-btn--google:hover { background: #F8FAFD; border-color: #B8C6DC; }

.mt-auth-switch { text-align: center; margin: 24px 0 0; font-size: 16px; color: var(--mt-ink, #0B1D3A); }
.mt-auth-switch a { color: #0B5FFF; font-weight: 600; margin-left: 4px; }
.mt-auth-switch a:hover { text-decoration: underline; }

/* Reassurance strip */
.mt-login__strip { background: #F4F7FC; padding: 28px 20px 40px; }
.mt-login__strip-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.mt-login__assure { display: flex; align-items: center; gap: 18px; padding: 8px 29px; }
.mt-login__assure + .mt-login__assure { border-left: 1px solid #D5DFEE; }
.mt-login__assure p { margin: 0; font-size: 15.5px; line-height: 1.5; color: #4A5A78; }
.mt-login__assure strong { display: block; font: 700 18px var(--mt-body, sans-serif); color: var(--mt-ink, #0B1D3A); margin-bottom: 2px; }


/* ══════════════════════════════════════════════════════════
   LOGIN — responsive
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.mt-login__top { min-height: 0; }
	.mt-login__hero { padding: 48px 28px; }
	.mt-login__feats { gap: 16px; }
	.mt-auth-ico { width: 54px; height: 54px; }
	.mt-login__feats strong { font-size: 17px; }
}

@media (max-width: 860px) {
	.mt-login__top { grid-template-columns: 1fr; }
	.mt-login__hero { padding: 34px 20px 78px; display: block; }
	.mt-login__art { width: 70%; right: -30px; opacity: .22; }
	.mt-login__title { margin-bottom: 12px; }
	.mt-login__t1 { font-size: 2.3rem; }
	.mt-login__t2 { font-size: 1.45rem; }
	.mt-login__lead { margin: 0; font-size: 15.5px; }
	.mt-login__feats { display: none; }

	.mt-login__panel { padding: 0 14px; margin-top: -52px; position: relative; z-index: 2; }
	.mt-auth-card { padding: 24px 18px 28px; box-shadow: 0 12px 36px rgba(11,29,58,.16); }
	.mt-auth-card__logo { width: 70px; height: 70px; margin-bottom: 10px; }
	.mt-auth-card__logo .mt-i { width: 34px; height: 34px; }
	.mt-auth-card__sub { margin-bottom: 20px; font-size: 15px; }
	.mt-af__in input { height: 52px; font-size: 16px; }   /* 16px stops iOS zoom-on-focus */

	.mt-login__strip { padding: 30px 16px 36px; }
	.mt-login__strip-in { grid-template-columns: 1fr; gap: 6px; }
	.mt-login__assure { padding: 14px 4px; }
	.mt-login__assure + .mt-login__assure { border-left: 0; border-top: 1px solid #DDE5F1; }
	.mt-auth-ico--soft-blue, .mt-auth-ico--soft-green, .mt-auth-ico--soft-purple { width: 56px; height: 56px; }
}


/* ══════════════════════════════════════════════════════════
   REGISTER PAGE — existing form markup, restyled to match
══════════════════════════════════════════════════════════ */
:root {
	--auth-primary: var(--navy, #0B1D3A);
	--auth-accent:  #0B5FFF;
	--auth-bg:      var(--off-white, #F4F7FC);
	--auth-border:  #D5DFEE;
	--auth-text:    var(--text, #0B1D3A);
	--auth-muted:   #6B82A4;
	--auth-error:   #B01E3A;
	--auth-success: #0C7A44;
	--auth-radius:  16px;
	--auth-shadow:  0 10px 40px rgba(11,29,58,.1);
	--auth-font:    var(--font-display, 'Sora', system-ui, sans-serif);
	--auth-body:    var(--font-body, 'DM Sans', system-ui, sans-serif);
}

.ev-auth-wrap {
	display: flex; align-items: center; justify-content: center;
	min-height: 80vh; padding: 40px 16px;
	background: var(--auth-bg); font-family: var(--auth-body);
}
.ev-auth-card {
	background: #fff; border-radius: var(--auth-radius); box-shadow: var(--auth-shadow);
	padding: 44px 40px 40px; width: 100%; max-width: 480px; display: flex; flex-direction: column;
}
@media (max-width: 520px) { .ev-auth-card { padding: 30px 20px 28px; } }

.ev-auth-logo {
	width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #E3EDFF; font-size: 40px; line-height: 1;
}
.ev-auth-title { font: 800 1.8rem/1.2 var(--auth-font); color: var(--auth-primary); text-align: center; margin: 0 0 8px; }
.ev-auth-sub   { font-size: 16px; color: var(--auth-muted); text-align: center; margin: 0 0 26px; }

.ev-auth-alert { padding: 12px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500; margin-bottom: 18px; display: none; }
.ev-auth-alert--error   { background: #FDECEE; color: var(--auth-error);   border: 1px solid #F7C9D1; }
.ev-auth-alert--success { background: #E3F5EA; color: var(--auth-success); border: 1px solid #A8DDBF; }

.ev-auth-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.ev-auth-field label { font: 700 15px var(--auth-body); color: var(--auth-text); }
.ev-auth-field input {
	width: 100%; height: 52px; padding: 0 14px; box-sizing: border-box;
	background: #F8FAFD; border: 1.5px solid var(--auth-border); border-radius: 9px;
	font: 16px var(--auth-body); color: var(--auth-text); outline: none;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.ev-auth-field input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 3px rgba(11,95,255,.14); background: #fff; }

.ev-pass-wrap { position: relative; display: flex; align-items: center; }
.ev-pass-wrap input { padding-right: 48px; }
.ev-pass-toggle {
	position: absolute; right: 8px; width: 38px; height: 38px; background: none; border: 0; cursor: pointer;
	font-size: 17px; line-height: 1; color: var(--auth-muted); border-radius: 8px;
}
.ev-pass-toggle:hover { background: #EEF3FB; }

.ev-auth-btn, a.ev-auth-btn {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 16px;
	background: #0B5FFF; color: #fff !important; border: 0; border-radius: 9px;
	font: 700 17px var(--auth-body); cursor: pointer; text-align: center; text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(11,95,255,.28); margin-top: 4px;
	transition: background .18s, transform .1s;
}
.ev-auth-btn:hover { background: #0A4FD6; }
.ev-auth-btn:active { transform: scale(.985); }
.ev-auth-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.ev-auth-switch { text-align: center; font-size: 15.5px; color: var(--auth-text); margin: 22px 0 0; }
.ev-auth-switch a { color: var(--auth-accent); font-weight: 600; text-decoration: none; }
.ev-auth-switch a:hover { text-decoration: underline; }

.ev-auth-already {
	text-align: center; padding: 36px 20px; background: #E3F5EA; border-radius: 14px; border: 1px solid #A8DDBF;
	color: var(--auth-text); font-size: 15.5px; max-width: 420px; margin: 40px auto;
}
.ev-auth-already p { margin: 0 0 18px; }

.ev-user-bar { font-size: 13px; color: rgba(255,255,255,.85); margin-left: 12px; }
.ev-user-bar strong { color: #fff; }
.ev-user-bar a { color: #B3D2FF; text-decoration: none; font-weight: 500; }
.ev-user-bar a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.mt-af__in input, .ev-auth-btn { transition: none; }
}