/* ============================================
   NexHire — Auth Pages Styles
   Login, Register, OTP Verification
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-y: auto;
}

/* Animated background orbs */
.auth-page::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: authOrb1 15s ease infinite alternate;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 217, 165, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: authOrb2 12s ease infinite alternate;
}

@keyframes authOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.2); }
}

@keyframes authOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 30px) scale(1.3); }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    text-decoration: none;
}

.auth-brand .brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    font-weight: 800;
    font-family: var(--font-heading);
}

.auth-brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Role Selection Cards */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.role-option {
    position: relative;
    cursor: pointer;
}

.role-option input {
    position: absolute;
    opacity: 0;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--bg-glass);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-align: center;
}

.role-option input:checked + .role-card {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

.role-card:hover {
    border-color: var(--border-light);
    background: var(--bg-glass-hover);
}

.role-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    transition: all var(--transition-base);
}

.role-option input:checked + .role-card .role-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.role-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.role-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Auth form specifics */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .btn-primary {
    height: 48px;
    font-size: 15px;
    margin-top: 8px;
}

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

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-light);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--accent);
}

/* OTP Input */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.otp-input {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-base);
    caret-color: var(--primary);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(255, 255, 255, 0.07);
}

.otp-input.filled {
    border-color: var(--accent);
}

.otp-timer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

.otp-timer .timer-value {
    color: var(--primary-light);
    font-weight: 600;
    font-family: var(--font-heading);
}

.resend-link {
    color: var(--primary-light);
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
    padding: 0;
    font-family: var(--font-body);
}

.resend-link:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Forgot password mail icon */
.auth-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 165, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin: 0 auto 20px;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-secondary);
}

/* Back to home link */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.auth-back:hover {
    color: var(--primary-light);
}
