/* ============================================================================
   HireTheVeterans.com — Auth Pages (Login, Register, Forgot Password)
   ============================================================================ */

.auth-section {
    padding: 48px 0 72px;
    background: var(--off-white);
    min-height: calc(100vh - var(--header-height) - 200px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 0 20px;
}

/* Auth Box */
.auth-box {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.auth-box-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0%, var(--red) 50%, var(--blue) 50%, var(--blue) 100%);
}

.auth-box-body {
    padding: 40px 36px;
}

/* Auth Typography */
.auth-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-align: center;
}

.auth-subtitle {
    font-family: 'Source Serif 4', serif;
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Auth Form */
.auth-form {
    margin-bottom: 0;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--blue);
    text-transform: none;
    letter-spacing: 0;
}

.form-label-link:hover {
    color: var(--blue-hover);
    text-decoration: underline;
}

.auth-form .form-input {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: var(--radius-sm);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}

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

/* Checkbox */
.form-check {
    margin-bottom: 24px;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
}

.check-text {
    font-size: 14px;
    color: var(--text-body);
}

/* Full-width button */
.btn-full {
    width: 100%;
}

/* Errors */
.auth-errors {
    background: var(--error-pale);
    border: 1px solid #F5C6CB;
    border-left: 4px solid var(--error);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.auth-error {
    font-size: 13px;
    color: #721C24;
    margin: 0;
    line-height: 1.5;
}

.auth-error + .auth-error {
    margin-top: 4px;
}

/* Success */
.auth-success {
    background: var(--success-pale);
    border: 1px solid #C3E6CB;
    border-left: 4px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.auth-success p {
    font-size: 14px;
    color: #155724;
    margin: 0;
    line-height: 1.5;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer Link */
.auth-footer-link {
    text-align: center;
    margin-top: 20px;
}

.auth-footer-link a {
    font-size: 14px;
    color: var(--blue);
    font-weight: 600;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

/* === Role Selection (used on register page) === */
.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.role-card {
    padding: 20px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.role-card:hover {
    border-color: var(--blue);
    background: var(--blue-pale);
}

.role-card.selected {
    border-color: var(--navy);
    background: var(--navy-pale);
    box-shadow: 0 0 0 2px var(--navy);
}

.role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.role-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.role-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* === Multi-Step Indicator === */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition);
}

.step-dot.active {
    background: var(--navy);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--success);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .auth-section {
        padding: 24px 0 48px;
    }

    .auth-box-body {
        padding: 28px 20px;
    }

    .auth-title {
        font-size: 26px;
    }

    .role-grid {
        grid-template-columns: 1fr;
    }
}
