/**
 * HireU Authentication Modal Styles
 * Matches the HireU brand aesthetics with role toggles and 6-digit OTP input boxes
 */

.hireu-auth-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(25, 4, 22, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.hireu-auth-backdrop.open {
	opacity: 1;
	visibility: visible;
}

.hireu-auth-dialog {
	background: #FFFDF9;
	border: 1.5px solid #EADBBA;
	border-radius: 20px;
	width: 100%;
	max-width: 470px;
	max-height: 94vh;
	overflow-y: auto;
	padding: 32px 36px;
	position: relative;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
	transform: scale(0.96);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #250720;
	box-sizing: border-box;
}

.hireu-auth-backdrop.open .hireu-auth-dialog {
	transform: scale(1);
}

.hireu-auth-close {
	position: absolute;
	top: 18px;
	right: 20px;
	font-size: 28px;
	border: none;
	background: transparent;
	color: #796671;
	cursor: pointer;
	line-height: 1;
	transition: color 0.15s ease;
}

.hireu-auth-close:hover {
	color: #250720;
}

/* Header */
.hireu-auth-header {
	text-align: center;
	margin-bottom: 20px;
}

.hireu-auth-brand-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #250720;
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 6px;
	margin-bottom: 10px;
}

.hireu-brand-icon {
	color: #C58B16;
}

.hireu-auth-title {
	font-size: 24px;
	font-weight: 800;
	color: #250720;
	margin: 0 0 4px;
}

.hireu-auth-subtitle {
	font-size: 13px;
	color: #796671;
	margin: 0;
}

/* Role Toggle Bar (Job Seeker / Employer) */
.hireu-role-toggle-bar {
	display: flex;
	background: #F4EADA;
	border: 1px solid #E5D5BA;
	border-radius: 10px;
	padding: 4px;
	gap: 4px;
	margin-bottom: 16px;
}

.hireu-role-toggle-btn {
	flex: 1;
	border: none;
	background: transparent;
	padding: 8px 12px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 700;
	color: #6C5B64;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.hireu-role-toggle-btn.active {
	background: #250720;
	color: #FFFFFF;
	box-shadow: 0 2px 6px rgba(37, 7, 32, 0.2);
}

.hireu-role-toggle-btn.active svg {
	stroke: #C58B16;
}

/* Mode Switcher Tabs (Sign In / Register) */
.hireu-mode-switcher-tabs {
	display: flex;
	border-bottom: 1.5px solid #F0E3CB;
	margin-bottom: 20px;
}

.hireu-mode-tab-btn {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px;
	font-size: 14px;
	font-weight: 700;
	color: #796671;
	cursor: pointer;
	border-bottom: 2.5px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s ease;
}

.hireu-mode-tab-btn.active {
	color: #250720;
	border-bottom-color: #C58B16;
}

/* Form Panels */
.hireu-auth-form-panel {
	display: none;
	flex-direction: column;
	gap: 14px;
}

.hireu-auth-form-panel.active {
	display: flex;
}

.hireu-auth-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.hireu-auth-field label {
	font-size: 12.5px;
	font-weight: 700;
	color: #250720;
}

.hireu-auth-input-wrap {
	position: relative;
	width: 100%;
}

.hireu-auth-input-wrap svg {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.hireu-auth-input-wrap input {
	width: 100%;
	border: 1.5px solid #E4D5BE;
	border-radius: 8px;
	padding: 10px 14px 10px 38px;
	font-size: 13.5px;
	font-family: inherit;
	color: #250720;
	background: #FFFFFF;
	outline: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.hireu-auth-input-wrap input:focus {
	border-color: #CF9005;
	box-shadow: 0 0 0 3px rgba(207, 144, 5, 0.15);
}

.hireu-auth-terms {
	font-size: 12px;
	color: #6C5B64;
}

.hireu-auth-terms label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.hireu-auth-submit-btn {
	background: linear-gradient(135deg, #250720 0%, #440A3C 100%);
	color: #FFFFFF;
	border: 1.5px solid #CF9005;
	border-radius: 10px;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(37, 7, 32, 0.3);
	transition: all 0.2s ease;
	margin-top: 6px;
}

.hireu-auth-submit-btn:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, #CF9005 0%, #B7790E 100%);
	box-shadow: 0 8px 20px rgba(207, 144, 5, 0.4);
	color: #FFFFFF;
}

.hireu-auth-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.hireu-auth-switch-text {
	text-align: center;
	font-size: 12.5px;
	color: #6C5B64;
	margin-top: 4px;
}

.hireu-switch-mode-link {
	color: #C58B16;
	font-weight: 700;
	text-decoration: underline;
	margin-left: 4px;
	cursor: pointer;
}

/* ==========================================================================
   OTP Panel
   ========================================================================== */
.hireu-otp-header-visual {
	text-align: center;
	margin-bottom: 18px;
}

.hireu-otp-icon-circle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #FAF3E3;
	border: 1.5px solid #EADBBA;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.hireu-otp-title {
	font-size: 20px;
	font-weight: 800;
	color: #250720;
	margin: 0 0 6px;
}

.hireu-otp-desc {
	font-size: 13px;
	color: #6C5B64;
	line-height: 1.45;
	margin: 0;
}

.hireu-otp-digits-row {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 16px 0;
}

.hireu-otp-box {
	width: 48px;
	height: 54px;
	border: 2px solid #E4D5BE;
	border-radius: 10px;
	background: #FFFFFF;
	font-size: 22px;
	font-weight: 800;
	color: #250720;
	text-align: center;
	outline: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.hireu-otp-box:focus {
	border-color: #CF9005;
	box-shadow: 0 0 0 3px rgba(207, 144, 5, 0.16);
	background: #FFFEFC;
}

.hireu-otp-resend-row {
	text-align: center;
	font-size: 12.5px;
	color: #796671;
	margin-bottom: 14px;
}

.hireu-otp-resend-row a {
	color: #C58B16;
	font-weight: 700;
	text-decoration: underline;
}

/* Status Messages */
.hireu-auth-status-msg {
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	display: none;
	padding: 10px 14px;
	border-radius: 8px;
	text-align: center;
}

.hireu-auth-status-msg.success {
	display: block;
	background: #ECFDF5;
	color: #065F46;
	border: 1px solid #A7F3D0;
}

.hireu-auth-status-msg.error {
	display: block;
	background: #FEF2F2;
	color: #991B1B;
	border: 1px solid #FECACA;
}
