/* ============================================================
   Huangye V3 — Auth pages (login / register / password recovery)
   View layer only. Real forms live in
   theme-framework/templates/foundation/form-*.php (untouched).
   ============================================================ */

.hy-auth-v3{
	--auth-primary:#1677E8;
	--auth-primary-hover:#0F5FC4;
	--auth-border:#E5E7EB;
	--auth-text:#1F2329;
	--auth-text-secondary:#5B5F66;
	--auth-text-muted:#8A8F98;
	--auth-error:#DC2626;
	--auth-error-bg:#FEF2F2;
}

/* ---------- Split layout ---------- */

.hy-auth-v3 .auth-split{
	display:grid;
	grid-template-columns:minmax(0,1fr) minmax(0,1fr);
	min-height:calc(100vh - 74px - 60px);
}

/* ---------- Left: Paris visual ---------- */

.hy-auth-v3 .auth-visual{
	position:relative;
	overflow:hidden;
	min-height:320px;
}

.hy-auth-v3 .auth-visual img{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
	object-fit:cover;
	object-position:center;
}

.hy-auth-v3 .auth-visual-overlay{
	position:absolute;
	inset:0;
	background:linear-gradient(180deg,rgba(18,24,38,.10) 0%,rgba(18,24,38,.06) 40%,rgba(18,24,38,.52) 100%);
}

.hy-auth-v3 .auth-visual-copy{
	position:absolute;
	left:48px;
	right:48px;
	bottom:48px;
	color:#fff;
	z-index:2;
}

.hy-auth-v3 .auth-visual-brand{
	display:block;
	font-size:26px;
	font-weight:700;
	letter-spacing:.4px;
	color:#fff;
	margin-bottom:14px;
}

.hy-auth-v3 .auth-visual-tagline{
	font-size:22px;
	font-weight:600;
	line-height:1.4;
	color:#fff;
	margin:0 0 10px;
	text-shadow:0 1px 8px rgba(0,0,0,.35);
}

.hy-auth-v3 .auth-visual-sub{
	font-size:14px;
	line-height:1.6;
	color:rgba(255,255,255,.88);
	margin:0;
	text-shadow:0 1px 6px rgba(0,0,0,.35);
}

/* ---------- Right: form panel ---------- */

.hy-auth-v3 .auth-panel{
	background:#fff;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:56px 48px 64px;
}

.hy-auth-v3 .auth-panel-inner{
	width:100%;
	max-width:460px;
}

.hy-auth-v3 .auth-heading{
	font-size:28px;
	font-weight:700;
	line-height:1.3;
	color:var(--auth-text);
	margin:0 0 10px;
}

.hy-auth-v3 .auth-sub{
	font-size:14.5px;
	line-height:1.6;
	color:var(--auth-text-secondary);
	margin:0 0 32px;
}

/* ---------- Notices (real appthemes_notices) ---------- */

.hy-auth-v3 .notice,
.hy-auth-v3 .error,
.hy-auth-v3 .message{
	border:1px solid var(--auth-border);
	border-radius:10px;
	background:#F8FAFC;
	padding:12px 16px;
	font-size:13.5px;
	line-height:1.55;
	color:var(--auth-text-secondary);
	margin:0 0 24px;
	list-style:none;
}

.hy-auth-v3 .notice.success,
.hy-auth-v3 .notice.updated,
.hy-auth-v3 .message.success{
	background:#ECFDF5;
	border-color:#BBF7D0;
	color:#047857;
}

.hy-auth-v3 .notice.error,
.hy-auth-v3 .error,
.hy-auth-v3 .notice.err{
	background:var(--auth-error-bg);
	border-color:#FECACA;
	color:var(--auth-error);
}

.hy-auth-v3 .auth-panel-inner > p{
	font-size:14.5px;
	color:var(--auth-text-secondary);
}

/* ---------- Real form fields (selectors match the untouched foundation forms) ---------- */

.hy-auth-v3 #login-form fieldset{
	border:none;
	padding:0;
	margin:0;
	display:flex;
	flex-direction:column;
	gap:18px;
}

.hy-auth-v3 #login-form label{
	display:block;
	font-size:13.5px;
	font-weight:600;
	color:var(--auth-text);
	margin-bottom:0;
}

.hy-auth-v3 #login-form input[type="text"],
.hy-auth-v3 #login-form input[type="email"],
.hy-auth-v3 #login-form input[type="password"]{
	display:block;
	width:100%;
	height:50px;
	margin-top:8px;
	padding:0 14px;
	font-size:15px;
	color:var(--auth-text);
	background:#fff;
	border:1px solid var(--auth-border);
	border-radius:11px;
	transition:border-color .15s ease,box-shadow .15s ease;
	box-shadow:none;
}

.hy-auth-v3 #login-form input[type="text"]:focus,
.hy-auth-v3 #login-form input[type="email"]:focus,
.hy-auth-v3 #login-form input[type="password"]:focus{
	outline:none;
	border-color:var(--auth-primary);
	box-shadow:0 0 0 3px rgba(22,119,232,.14);
}

.hy-auth-v3 #login-form input[type="text"].error,
.hy-auth-v3 #login-form input[type="email"].error,
.hy-auth-v3 #login-form input[type="password"].error{
	border-color:var(--auth-error);
}

/* remember-me row */

.hy-auth-v3 #login-form input[type="checkbox"]{
	width:16px;
	height:16px;
	accent-color:var(--auth-primary);
	vertical-align:middle;
	margin:0 6px 0 0;
}

.hy-auth-v3 #login-form label[for="rememberme"]{
	display:inline;
	font-weight:400;
	font-size:13.5px;
	color:var(--auth-text-secondary);
	margin-top:0;
}

/* primary CTA — Huangye brand blue */

.hy-auth-v3 #login-form input.button.expanded,
.hy-auth-v3 #login-form input[type="submit"]{
	width:100%;
	height:50px;
	margin-top:6px;
	padding:0;
	font-size:16px;
	font-weight:600;
	color:#fff;
	background:var(--auth-primary);
	border:none;
	border-radius:11px;
	cursor:pointer;
	transition:background .15s ease;
	box-shadow:none;
	-webkit-appearance:none;
}

.hy-auth-v3 #login-form input.button.expanded:hover,
.hy-auth-v3 #login-form input[type="submit"]:hover{
	background:var(--auth-primary-hover);
}

.hy-auth-v3 #login-form input.button.expanded:focus-visible,
.hy-auth-v3 #login-form input[type="submit"]:focus-visible{
	outline:2px solid var(--auth-primary);
	outline-offset:2px;
}

/* bottom links inside the real forms */

.hy-auth-v3 #login-form #nav{
	margin:4px 0 0;
	font-size:14px;
	color:var(--auth-text-muted);
	text-align:center;
}

.hy-auth-v3 #login-form #nav a{
	color:var(--auth-primary);
	text-decoration:none;
}

.hy-auth-v3 #login-form #nav a:hover{
	text-decoration:underline;
}

/* ============================================================
   Auth pages: simplified site header & footer (visual only,
   scoped to .hy-auth-page body class — header.php / footer.php
   markup untouched)
   ============================================================ */

body.hy-auth-page .site-header .desktop-nav,
body.hy-auth-page .site-header .header-actions,
body.hy-auth-page .site-header .menu-button{
	display:none;
}

/* Auth pages end after the split layout — hide the site footer entirely.
   Scoped to .hy-auth-page; footer.php itself is untouched. */
body.hy-auth-page .site-footer{
	display:none;
}

/* ============================================================
   Google entry button (standard Google style, NOT Huangye blue)
   and the divider above the traditional form. Rendered by
   hy_auth_google_button() in bootstrap.php; stays disabled
   until a mature OAuth integration (e.g. Nextend Social Login)
   is installed and its Google provider is connected.
   ============================================================ */

.hy-auth-v3 .hy-auth-google{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:12px;
	width:100%;
	height:50px;
	margin:0 0 22px;
	padding:0 16px;
	font-size:15px;
	font-weight:500;
	color:#3c4043;
	background:#fff;
	border:1px solid #dadce0;
	border-radius:11px;
	cursor:not-allowed;
	transition:background .15s ease,border-color .15s ease;
}

.hy-auth-v3 .hy-auth-google .google-g{
	flex:0 0 auto;
	width:20px;
	height:20px;
}

.hy-auth-v3 .hy-auth-google:disabled{
	opacity:.75;
}

/* Nextend Social Login button — scoped adaptation to the Auth V3 spec
   (white bg, gray border, G icon, ~50px tall, same width as inputs).
   Only inside .hy-auth-v3; NSL buttons anywhere else are untouched. */

.hy-auth-v3 .nsl-container{
	margin:0 0 22px;
}

.hy-auth-v3 .nsl-container .nsl-container-buttons{
	display:block;
}

.hy-auth-v3 .nsl-container a[data-provider="google"]{
	display:block;
	text-decoration:none;
	box-shadow:none;
}

.hy-auth-v3 .nsl-container .nsl-button.nsl-button-google{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:12px;
	width:100%;
	height:50px;
	padding:0 16px;
	border:1px solid #dadce0;
	border-radius:11px;
	box-shadow:none;
	color:#3c4043;
	font-size:15px;
	font-weight:500;
	line-height:50px;
	text-align:center;
	transition:border-color .15s ease,box-shadow .15s ease;
}

.hy-auth-v3 .nsl-container .nsl-button.nsl-button-google:hover{
	border-color:#c6c9ce;
	box-shadow:0 1px 3px rgba(0,0,0,.08);
}

.hy-auth-v3 .nsl-container .nsl-button.nsl-button-google .nsl-button-svg-container{
	flex:0 0 auto;
	width:20px;
	height:20px;
	line-height:0;
}

.hy-auth-v3 .nsl-container .nsl-button.nsl-button-google .nsl-button-svg-container svg{
	width:20px;
	height:20px;
}

.hy-auth-v3 .nsl-container .nsl-button.nsl-button-google .nsl-button-label-container{
	flex:0 0 auto;
	line-height:normal;
}

.hy-auth-v3 .hy-auth-divider{
	display:flex;
	align-items:center;
	gap:14px;
	margin:0 0 22px;
	font-size:13px;
	color:var(--auth-text-muted);
}

.hy-auth-v3 .hy-auth-divider::before,
.hy-auth-v3 .hy-auth-divider::after{
	content:"";
	flex:1 1 auto;
	height:1px;
	background:var(--auth-border);
}

/* ============================================================
   Tablet & mobile — single column, image hero on top
   ============================================================ */

@media (max-width:900px){
	.hy-auth-v3 .auth-split{
		grid-template-columns:minmax(0,1fr);
		min-height:0;
	}

	.hy-auth-v3 .auth-visual{
		height:170px;
		min-height:0;
	}

	.hy-auth-v3 .auth-visual-overlay{
		background:linear-gradient(180deg,rgba(18,24,38,.05) 0%,rgba(18,24,38,.42) 100%);
	}

	.hy-auth-v3 .auth-visual-copy{
		left:20px;
		right:20px;
		bottom:18px;
	}

	.hy-auth-v3 .auth-visual-brand{
		font-size:20px;
		margin-bottom:6px;
	}

	.hy-auth-v3 .auth-visual-tagline{
		font-size:17px;
		margin-bottom:4px;
	}

	.hy-auth-v3 .auth-visual-sub{
		font-size:12.5px;
	}

	.hy-auth-v3 .auth-panel{
		padding:36px 20px 48px;
		align-items:flex-start;
	}

	.hy-auth-v3 .auth-panel-inner{
		max-width:100%;
	}

	.hy-auth-v3 .auth-heading{
		font-size:24px;
	}

	.hy-auth-v3 .auth-sub{
		margin-bottom:26px;
	}
}
