/* --- Centralized Single-Card Auth Page Styles --- */
.auth-page-viewport {
	position: relative;
	width: 100%;
	height: auto;
	min-height: 100vh;
	color: var(--text-main);
	font-family: 'Poppins', sans-serif;
	padding: 2rem;
}

.auth-card-container {
	position: relative;
	width: 100%;
	max-width: 440px;
	border-radius: 24px;
	padding: 0rem 2.5rem;
	margin: auto;
}

.auth-brand-header {
	position: relative;
	width: 100%;
	height: auto;
	margin-bottom: 3rem;
	text-align: center;
}

.auth-logo {
	position: relative;
	width: 100%;
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--text-main);
	text-decoration: none;
	letter-spacing: -1px;
}

.auth-logo .teal-dot {
	color: var(--accent-teal);
	/* #00f2cd */
}

/* Form Visibility Control Matrices */
.auth-form-state {
	display: none;
	/* Hide panels by default */
}

.auth-form-state.active {
	display: block;
	/* Display only the flagged operational form state */
}

.auth-form-state h2 {
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin-bottom: 0.35rem;
}

.state-subtitle {
	position: relative;
	height: auto;
	width: 100%;
	color: #464646;
	font-size: 20px;
	margin-bottom: 18px;
	font-weight: bold;
	text-align: center;
	line-height: 23px;
}

.state-subtitle span{
	position: relative;
	font-weight: normal;
	font-size: 0.8rem;
	margin-bottom: 10px;
	color: red;
}

/* Google Sign-In Accent Button */
.btn-oauth-google {
	width: 100%;
	background: transparent;
	border-radius: 12px;
	color: #1e3a8a;
	font-size: 0.95rem;
	font-weight: 600;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	transition: var(--transition);
}

/* Clean Custom Divider Line */
.auth-divider {
	text-align: center;
	position: relative;
	margin: 1.5rem 0;
}

.auth-divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background: rgba(0, 0, 0, 0.05);
	z-index: 1;
}

.auth-divider span {
	background: rgba(0, 128, 128, 0);
	padding: 0 1rem;
	position: relative;
	z-index: 2;
	font-size: 0.8rem;
	color: #4b5563;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Form Structural Framework */
.auth-form-element {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.auth-input-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.auth-input-group label {
	font-size: 0.75rem;
	color: var(--text-muted);
}

.input-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.auth-input-group input {
	background: #f4f4f4;
	border: 1px solid #b7b7b7;
	border-radius: 10px;
	padding: 0.85rem 1.25rem;
	color: #000;
	font-size: 0.85rem;
	outline: none;
	transition: var(--transition);
}

.auth-input-group input:focus {
	border: 1.5px solid #b7b7b7;
	border-color: var(--accent-teal);
}

.auth-input-group input.input-has-error {
	border-color: #dc2626;
	background: #fff7f7;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-error {
	color: #dc2626;
	font-size: 0.76rem;
	line-height: 1.35;
}

/* Password Input Context Wrap */
.password-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.password-input-wrapper input {
	width: 100%;
}

.toggle-password-text {
	position: absolute;
	right: 1.25rem;
	background: transparent;
	border: none;
	color: #4b5563;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.toggle-password-text:hover {
	color: #1e3a8a;
}

/* Action Control Buttons */
.btn-auth-execute {
	margin-top: 0.5rem;
	background: #1e3a8a;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 0.9rem;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
}

.btn-auth-execute:hover {
	background: var(--accent-teal);
	box-shadow: 0 0 20px rgba(0, 242, 205, 0.15);
}

.auth-switch-footer {
	text-align: center;
	margin-top: 2rem;
	font-size: 0.9rem;
	color: var(--text-muted);
}

/* Clean Context Text Trigger Link Buttons */
.link-btn {
	background: transparent;
	border: none;
	color: var(--accent-teal);
	font-size: inherit;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	transition: var(--transition);
	font-size: 13px;
}

.link-btn:hover {
	text-decoration: underline;
}

/* --- Email Verification Modal --- */
.email-verify-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 17, 31, 0.78);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 1.25rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.email-verify-overlay.active {
	opacity: 1;
	visibility: visible;
}

.email-verify-card {
	background: #ffffff;
	width: 100%;
	max-width: 440px;
	border-radius: 20px;
	padding: 2rem 1.75rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
	text-align: center;
	font-family: 'Poppins', sans-serif;
	transform: translateY(10px) scale(0.98);
	transition: transform 0.25s ease;
}

.email-verify-overlay.active .email-verify-card {
	transform: translateY(0) scale(1);
}

.email-verify-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem auto;
	border-radius: 50%;
	background: #eff6ff;
	color: #1e3a8a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
}

.email-verify-card h3 {
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.5rem 0;
}

.email-verify-desc {
	font-size: 0.85rem;
	color: #475569;
	line-height: 1.55;
	margin: 0 0 1rem 0;
}

.email-verify-target {
	font-weight: 600;
	color: #0f172a;
}

.spam-notice-banner {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 12px;
	padding: 0.85rem 1rem;
	text-align: left;
	font-size: 0.78rem;
	color: #92400e;
	line-height: 1.5;
	margin-bottom: 1.25rem;
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
}

.spam-notice-banner i {
	font-size: 1.1rem;
	color: #d97706;
	flex-shrink: 0;
	margin-top: 2px;
}

.verify-code-input {
	width: 100%;
	text-align: center;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: 0.45rem;
	padding: 0.85rem 1rem;
	border: 1.5px solid #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	color: #0f172a;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	margin-bottom: 0.75rem;
}

.verify-code-input:focus {
	border-color: #1e3a8a;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.email-verify-feedback {
	min-height: 1.25rem;
	font-size: 0.8rem;
	margin-bottom: 0.75rem;
	font-weight: 500;
}

.email-verify-actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.btn-verify-code {
	width: 100%;
	background: #1e3a8a;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 0.9rem;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.btn-verify-code:hover:not(:disabled) {
	background: #172554;
}

.btn-verify-code:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.btn-resend-code {
	background: transparent;
	border: none;
	color: #475569;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.35rem;
}

.btn-resend-code span {
	color: #1e3a8a;
	text-decoration: underline;
}

.btn-resend-code:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Adaptive scaling adjustments for mobile viewports */
@media (max-width: 480px) {
	.auth-card-container {
		padding: 2rem 0px;
		border: none;
		background: transparent;
		box-shadow: none;
	}

	.email-verify-card {
		padding: 1.5rem 1.25rem;
	}
}
