/* ===== CORPORATE TRUST AUTH STYLES ===== */
/* Navy: #0F172A | Gold: #46BD42 | Royal Blue: #1E3A8A */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-container--wide {
    max-width: 560px;
}

.auth-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    margin-bottom: 1rem;
}

.auth-logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: #0F172A;
}

.auth-title {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: #475569;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-alert--error {
    background: rgba(220, 38, 38, 0.06);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.auth-alert--success {
    background: rgba(22, 163, 74, 0.06);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.auth-alert-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* Form */
.auth-form {
    margin-bottom: 1.5rem;
}

/* Form sections (register) */
.form-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 1.25rem;
}

.section-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #1E3A8A;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-family: 'Lexend', system-ui, sans-serif;
    font-weight: 500;
    color: #0F172A;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid #CBD5E1;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    color: #0F172A;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-input::placeholder {
    color: #64748B;
}

.form-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #64748B;
    pointer-events: none;
}

.form-toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    color: #64748B;
}

.form-toggle-password:hover {
    background: rgba(15, 23, 42, 0.05);
}

.toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #64748B;
}

/* Form options (remember me / forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    accent-color: #1E3A8A;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.checkbox-label {
    color: #334155;
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.875rem;
}

.form-link {
    color: #1E3A8A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-link:hover {
    color: #0F172A;
    text-decoration: underline;
}

/* Buttons */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 9999px;
    font-family: 'Lexend', system-ui, sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

.auth-btn--primary {
    background: #0F172A;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.auth-btn--primary:hover {
    background: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.auth-btn--primary:active {
    transform: translateY(0);
}

.auth-btn--secondary {
    background: #ffffff;
    color: #0F172A;
    border: 1.5px solid #CBD5E1;
}

.auth-btn--secondary:hover {
    background: #F8FAFC;
    border-color: #1E3A8A;
    color: #1E3A8A;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

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

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E2E8F0;
}

.auth-divider span {
    background: #ffffff;
    padding: 0 1rem;
    color: #64748B;
    font-size: 0.875rem;
    position: relative;
}

/* Trust indicators */
.auth-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748B;
}

.info-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #0F172A;
}

/* Back link */
.auth-back {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748B;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #1E3A8A;
}

.back-icon {
    width: 1rem;
    height: 1rem;
}

/* Form error styles */
.form-error-wrapper {
    color: #dc2626 !important;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: block;
    font-weight: 500;
}

.form-error-wrapper ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.form-error-wrapper li {
    display: flex !important;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
    color: #dc2626 !important;
    font-size: 0.8125rem;
    font-weight: 500;
}

.form-error-wrapper li::before {
    content: '\26A0' !important;
    color: #dc2626 !important;
    font-weight: bold;
}

.form-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.invalid-feedback {
    display: block !important;
    color: #dc2626 !important;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

ul.form-error-list {
    margin: 0.375rem 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.form-error-list li {
    display: flex !important;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
    color: #dc2626 !important;
    font-size: 0.8125rem;
    font-weight: 500;
}

ul.form-error-list li::before {
    content: '\26A0' !important;
    color: #dc2626 !important;
    font-weight: bold;
}

.form-errors,
.form-error,
.invalid-feedback,
ul.form-error-list,
ul.form-error-list li {
    color: #dc2626 !important;
}

.form-input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-input:invalid {
    box-shadow: none;
}

.form-input.is-invalid:not(:focus) {
    border-color: #dc2626;
}

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

.form-input-wrapper.has-error .form-input-icon {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container--wide {
        max-width: 440px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-info {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 1rem 0.75rem;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 0.75rem;
    }

    .auth-title {
        font-size: 1.375rem;
    }

    .auth-info {
        gap: 0.75rem;
    }

    .info-item {
        font-size: 0.6875rem;
    }
}
