/**
 * EduNexa — Modern Responsive Auth Stylesheet
 *
 * Provides styling for the WooCommerce My-Account Login & Register pages,
 * including Mobile OTP verification, countdown timer, and split banner.
 *
 * @package EduNexa
 * @since   1.1.0
 */

.edunexa-auth-page-wrap {
	width: 100%;
	padding: 24px 0 60px 0;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	background: transparent !important;
	min-height: auto;
}

.edunexa-auth-container {
	width: 100%;
	max-width: 1060px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(28, 29, 71, 0.08), 0 4px 15px rgba(28, 29, 71, 0.04);
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

/* ==========================================================================
   LEFT BANNER (VISUAL & BRANDING)
   ========================================================================== */
.edunexa-auth-banner {
	background: linear-gradient(145deg, #161736 0%, #1c1d47 100%);
	color: #ffffff;
	padding: 48px 40px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.edunexa-auth-banner-bg-glow {
	position: absolute;
	top: -120px;
	right: -100px;
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(250, 178, 55, 0.22) 0%, rgba(28, 29, 71, 0) 70%);
	pointer-events: none;
}

.edunexa-auth-banner-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 35px;
	position: relative;
	z-index: 2;
}

.edunexa-auth-brand-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #ffffff;
}

.edunexa-auth-logo-badge {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #fab237 0%, #f59e0b 100%);
	color: #19212e;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(250, 178, 55, 0.35);
}

.edunexa-auth-logo-text {
	font-size: 19px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.3px;
}

.edunexa-auth-badge-tag {
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 12px;
	background: rgba(250, 178, 55, 0.15);
	color: #fab237;
	border: 1px solid rgba(250, 178, 55, 0.3);
	border-radius: 20px;
}

.edunexa-auth-banner-content {
	position: relative;
	z-index: 2;
}

.edunexa-auth-banner-title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.45;
	color: #ffffff;
	margin: 0 0 16px 0;
}

.edunexa-auth-banner-title span {
	color: #fab237;
}

.edunexa-auth-banner-desc {
	font-size: 14px;
	color: #94a3b8;
	line-height: 1.7;
	margin: 0 0 32px 0;
}

.edunexa-auth-features {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.edunexa-auth-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.edunexa-feature-icon {
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.08);
	color: #fab237;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.edunexa-feature-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.edunexa-feature-text strong {
	font-size: 13.5px;
	color: #f1f5f9;
	font-weight: 700;
}

.edunexa-feature-text span {
	font-size: 12px;
	color: #94a3b8;
}

.edunexa-auth-banner-bottom {
	margin-top: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	z-index: 2;
}

.edunexa-auth-char-box {
	width: 130px;
	height: 130px;
	position: relative;
}

.edunexa-auth-char-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.edunexa-auth-stats-card {
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.edunexa-stats-avatars {
	display: flex;
	align-items: center;
}

.edunexa-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
	border: 2px solid #19212e;
	margin-left: -8px;
}

.edunexa-avatar:last-child {
	color: #19212e;
}

.edunexa-stats-text {
	display: flex;
	flex-direction: column;
}

.edunexa-stats-text strong {
	font-size: 12.5px;
	color: #ffffff;
}

.edunexa-stats-text span {
	font-size: 11px;
	color: #fab237;
}

/* ==========================================================================
   RIGHT FORM CARD
   ========================================================================== */
.edunexa-auth-card {
	padding: 48px 46px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #ffffff;
}

/* Tabs Navigation */
.edunexa-auth-tabs-nav {
	display: flex;
	background: #f1f5f9;
	border-radius: 14px;
	padding: 5px;
	gap: 4px;
	margin-bottom: 30px;
}

.edunexa-auth-tab-btn {
	flex: 1;
	border: none;
	background: transparent;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	color: #64748b;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
	position: relative;
}

.edunexa-auth-tab-btn:hover {
	color: #1e293b;
}

.edunexa-auth-tab-btn.active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.edunexa-auth-tab-btn svg {
	width: 17px;
	height: 17px;
	stroke: currentColor;
}

.edunexa-tab-badge-rec {
	font-size: 10px;
	padding: 2px 6px;
	background: #fab237;
	color: #19212e;
	border-radius: 6px;
	font-weight: 800;
}

/* Tab Panes & Dynamic Flow Stages */
.edunexa-auth-pane,
.edunexa-auth-stage {
	display: none;
}

.edunexa-auth-pane.active,
.edunexa-auth-stage.active {
	display: block;
	animation: edunexaPaneFade 0.25s ease-out;
}

/* Alternative Action Buttons (OTP / Forgot Password) */
.edunexa-auth-alt-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px dashed #e2e8f0;
}

.edunexa-btn-alt-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 11px 16px;
	color: #334155;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.22s ease;
}

.edunexa-btn-alt-action svg {
	width: 17px;
	height: 17px;
	color: #d97706;
}

.edunexa-btn-alt-action:hover {
	background: #fffbeb;
	border-color: #fab237;
	color: #b45309;
	transform: translateY(-1px);
}

.edunexa-btn-alt-action.is-link {
	background: transparent;
	border: none;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
	padding: 4px;
	text-decoration: none;
}

.edunexa-btn-alt-action.is-link:hover {
	background: transparent;
	color: #d97706;
	text-decoration: underline;
	transform: none;
}

.edunexa-change-phone-btn {
	background: rgba(250, 178, 55, 0.16);
	color: #b45309;
	border: none;
	font-size: 11.5px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 6px;
	cursor: pointer;
	margin-right: 6px;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.edunexa-change-phone-btn:hover {
	background: #fab237;
	color: #19212e;
}

@keyframes edunexaPaneFade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.edunexa-pane-header {
	margin-bottom: 24px;
}

.edunexa-pane-header h3 {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.edunexa-pane-header p {
	font-size: 13.5px;
	color: #64748b;
	margin: 0;
	line-height: 1.6;
}

/* Alerts */
.edunexa-auth-alert {
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: edunexaAlertSlide 0.2s ease-out;
}

@keyframes edunexaAlertSlide {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.edunexa-auth-alert.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.edunexa-auth-alert.success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

/* Inputs & Form Groups */
.edunexa-input-group {
	margin-bottom: 20px;
}

.edunexa-input-group label {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 8px;
}

.edunexa-label-split {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.edunexa-label-split label {
	margin-bottom: 0;
}

.edunexa-forgot-link {
	font-size: 12.5px;
	color: #1c1d47;
	text-decoration: none;
	font-weight: 700;
	transition: color 0.2s ease;
}

.edunexa-forgot-link:hover {
	color: #fab237;
	text-decoration: underline;
}

.edunexa-input-text {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	font-size: 14.5px;
	color: #0f172a;
	background: #ffffff;
	box-sizing: border-box;
	transition: all 0.2s ease;
	outline: none;
	font-family: inherit;
}

.edunexa-input-text:focus {
	border-color: #fab237;
	box-shadow: 0 0 0 4px rgba(250, 178, 55, 0.2);
}

.edunexa-input-prefix-box {
	display: flex;
	align-items: center;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	transition: all 0.2s ease;
}

.edunexa-input-prefix-box:focus-within {
	border-color: #fab237;
	box-shadow: 0 0 0 4px rgba(250, 178, 55, 0.2);
}

.edunexa-input-prefix-box .edunexa-input-text {
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 13px 16px;
}

.edunexa-country-code {
	padding: 0 14px;
	background: #f8fafc;
	color: #334155;
	font-size: 13.5px;
	font-weight: 700;
	border-left: 1px solid #e2e8f0;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.edunexa-flag-ir {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	line-height: 1;
	flex-shrink: 0;
}

.edunexa-flag-ir svg {
	display: block;
	width: 22px;
	height: 15px;
}

.edunexa-dial-code {
	font-weight: 800;
	color: #0f172a;
	direction: ltr;
}

.edunexa-field-hint {
	display: block;
	font-size: 11.5px;
	color: #94a3b8;
	margin-top: 6px;
}

/* Password Toggle Input */
.edunexa-password-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.edunexa-toggle-password {
	position: absolute;
	left: 12px;
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.edunexa-toggle-password:hover {
	color: #334155;
}

.edunexa-toggle-password .edunexa-eye-hide {
	display: none;
}

.edunexa-toggle-password.is-showing .edunexa-eye-show {
	display: none;
}

.edunexa-toggle-password.is-showing .edunexa-eye-hide {
	display: inline-flex;
}

/* Multi-box OTP Input */
.edunexa-otp-boxes {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin: 16px 0 22px 0;
}

.edunexa-otp-digit {
	width: 54px;
	height: 58px;
	text-align: center;
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	border: 2px solid #cbd5e1;
	border-radius: 14px;
	background: #f8fafc;
	transition: all 0.2s ease;
	outline: none;
	font-family: inherit;
}

.edunexa-otp-digit:focus {
	border-color: #fab237;
	background: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(250, 178, 55, 0.25);
}

.edunexa-phone-target {
	color: #0f172a;
	font-weight: 800;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 6px;
}

.edunexa-btn-link {
	background: none;
	border: none;
	color: #1c1d47;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	margin-right: 8px;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.edunexa-btn-link:hover {
	color: #fab237;
}

.edunexa-digits-badge {
	color: #fab237;
	font-weight: 800;
}

/* OTP Timer & Resend */
.edunexa-otp-timer-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid #edf2f7;
	border-radius: 12px;
}

.edunexa-timer-count {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #475569;
}

.edunexa-timer-count svg {
	color: #fab237;
}

.edunexa-timer-count strong {
	color: #0f172a;
	font-size: 14px;
	font-weight: 800;
	font-family: inherit;
}

.edunexa-btn-resend {
	border: none;
	background: none;
	color: #1c1d47;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s ease;
}

.edunexa-btn-resend:hover:not(:disabled) {
	color: #fab237;
	text-decoration: underline;
}

.edunexa-btn-resend:disabled {
	color: #94a3b8;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Submit Buttons */
.edunexa-btn-submit {
	width: 100%;
	padding: 14px 24px;
	background: #fab237;
	color: #19212e;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 16px rgba(250, 178, 55, 0.35);
	transition: all 0.2s ease;
	position: relative;
	font-family: inherit;
}

.edunexa-btn-submit:hover {
	background: #f59e0b;
	transform: translateY(-2px);
	box-shadow: 0 6px 22px rgba(250, 178, 55, 0.45);
}

.edunexa-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.edunexa-btn-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(25, 33, 46, 0.25);
	border-top-color: #19212e;
	border-radius: 50%;
	animation: edunexaSpin 0.7s linear infinite;
}

@keyframes edunexaSpin {
	to { transform: rotate(360deg); }
}

/* Remember me row */
.edunexa-remember-row {
	margin-bottom: 20px;
}

.edunexa-checkbox-container {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475569;
	cursor: pointer;
}

.edunexa-terms-notice {
	text-align: center;
	font-size: 12px;
	color: #94a3b8;
	margin-top: 20px;
	line-height: 1.6;
}

.edunexa-terms-notice a {
	color: #1c1d47;
	text-decoration: none;
	font-weight: 700;
	transition: color 0.2s ease;
}

.edunexa-terms-notice a:hover {
	color: #fab237;
	text-decoration: underline;
}

/* Single Card Mode (Without Banner) */
.edunexa-auth-page-wrap.is-single-card .edunexa-auth-container,
.edunexa-auth-container.without-banner {
	grid-template-columns: 1fr;
	max-width: 540px;
}

/* Card Footer */
.edunexa-auth-card-footer {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #64748b;
	flex-wrap: wrap;
}

.edunexa-help-question {
	color: #64748b;
}

.edunexa-help-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #d97706;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.15s ease;
}

.edunexa-help-link:hover {
	color: #b45309;
	text-decoration: underline;
}

.edunexa-help-icon {
	color: #fab237;
	display: inline-flex;
	align-items: center;
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE, TABLET, DESKTOP)
   ========================================================================== */
@media (max-width: 980px) {
	.edunexa-auth-container {
		grid-template-columns: 1fr;
		max-width: 580px;
		border-radius: 20px;
	}

	.edunexa-auth-banner {
		padding: 36px 30px;
	}

	.edunexa-auth-banner-title {
		font-size: 22px;
	}

	.edunexa-auth-banner-bottom {
		margin-top: 24px;
	}

	.edunexa-auth-char-box {
		width: 100px;
		height: 100px;
	}

	.edunexa-auth-card {
		padding: 36px 30px;
	}
}

@media (max-width: 520px) {
	.edunexa-auth-page-wrap {
		padding: 15px 12px 40px 12px;
	}

	.edunexa-auth-banner {
		padding: 28px 20px;
	}

	.edunexa-auth-features {
		display: none; /* Keep mobile view clean & focused */
	}

	.edunexa-auth-card {
		padding: 28px 20px;
	}

	.edunexa-auth-tabs-nav {
		flex-direction: column;
	}

	.edunexa-auth-tab-btn {
		width: 100%;
		justify-content: flex-start;
	}

	.edunexa-otp-boxes {
		gap: 8px;
	}

	.edunexa-otp-digit {
		width: 44px;
		height: 50px;
		font-size: 20px;
		border-radius: 10px;
	}

	.edunexa-otp-timer-row {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
}
