@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --bs-navy: #1a2f5c;
    --bs-navy-dark: #122240;
    --bs-blue: #3d6cb9;
    --bs-gold: #d4a84b;
    --bs-gold-light: #f0d78c;
    --bs-surface: #f6f8fc;
    --bs-surface-alt: #eef2f9;
    --bs-text: #1e293b;
    --bs-text-muted: #64748b;
    --bs-border: #e2e8f0;
    --bs-radius: 1rem;
    --bs-shadow: 0 1.25rem 3rem rgba(26, 47, 92, 0.1);
    --bs-font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.bs-auth {
    margin: 0;
    min-height: 100vh;
    font-family: var(--bs-font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--bs-text);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 108, 185, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 168, 75, 0.08) 0%, transparent 50%),
        var(--bs-surface);
}

.bs-auth__layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 2.5rem;
    gap: 1.5rem;
}

.bs-auth__brand {
    display: block;
    text-decoration: none;
    text-align: center;
}

.bs-auth__logo {
    display: block;
    width: min(100%, 22rem);
    height: auto;
    margin: 0 auto;
}

.bs-auth__tagline {
    margin: 0.75rem 0 0;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-text-muted);
}

.bs-auth__main {
    width: 100%;
    max-width: 26rem;
}

.bs-auth-card {
    background: #fff;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    box-shadow: var(--bs-shadow);
    padding: 2rem 2rem 1.75rem;
}

.bs-auth-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-navy);
    text-align: center;
    letter-spacing: -0.02em;
}

.bs-auth-card__subtitle {
    margin: 0 0 1.75rem;
    font-size: 0.9375rem;
    color: var(--bs-text-muted);
    text-align: center;
}

.bs-auth-notice {
    margin: -0.75rem 0 1.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    background: var(--bs-surface-alt);
    border-radius: 0.65rem;
}

.bs-auth-notice a {
    color: var(--bs-blue);
    font-weight: 600;
    text-decoration: none;
}

.bs-auth-notice a:hover {
    color: var(--bs-navy);
    text-decoration: underline;
}

.bs-auth-card .alert {
    font-size: 0.875rem;
    border-radius: 0.65rem;
}

.bs-auth-card .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-navy);
    margin-bottom: 0.4rem;
}

.bs-auth-card .form-control {
    border: 1px solid var(--bs-border);
    border-radius: 0.65rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bs-auth-card .form-control:focus {
    border-color: var(--bs-blue);
    box-shadow: 0 0 0 3px rgba(61, 108, 185, 0.15);
}

.bs-auth-card .form-check {
    margin: 0;
}

.bs-auth-card .form-check-label {
    font-size: 0.875rem;
    color: var(--bs-text-muted);
}

.bs-auth-card .form-check-input:checked {
    background-color: var(--bs-navy);
    border-color: var(--bs-navy);
}

.bs-auth-card .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(26, 47, 92, 0.15);
}

.bs-auth-field {
    margin-bottom: 1.25rem;
}

.bs-auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
    margin-bottom: 0.25rem;
}

.bs-auth-field-row .bs-auth-field {
    margin-bottom: 1rem;
}

.bs-auth-field--password {
    margin-bottom: 0.5rem;
}

.bs-auth-forgot {
    text-align: right;
    margin-bottom: 1.25rem;
}

.bs-auth-forgot a {
    font-size: 0.8125rem;
    color: var(--bs-blue);
    text-decoration: none;
    font-weight: 500;
}

.bs-auth-forgot a:hover {
    color: var(--bs-navy);
    text-decoration: underline;
}

.bs-auth-remember {
    margin-bottom: 1.5rem;
}

.bs-auth-submit .btn-primary {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, var(--bs-navy) 0%, var(--bs-navy-dark) 100%);
    box-shadow: 0 4px 14px rgba(26, 47, 92, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bs-auth-submit .btn-primary:hover {
    background: linear-gradient(135deg, var(--bs-navy-dark) 0%, #0d1a33 100%);
    box-shadow: 0 6px 20px rgba(26, 47, 92, 0.3);
    transform: translateY(-1px);
}

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

.bs-auth-register {
    text-align: center;
    font-size: 0.875rem;
    color: var(--bs-text-muted);
}

.bs-auth-register a {
    color: var(--bs-blue);
    font-weight: 600;
    text-decoration: none;
}

.bs-auth-register a:hover {
    color: var(--bs-navy);
    text-decoration: underline;
}

.bs-auth__footer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--bs-text-muted);
}

.bs-auth__footer strong {
    color: var(--bs-navy);
    font-weight: 600;
}

.bs-auth-invitation-summary {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    text-align: center;
    background: var(--bs-surface-alt);
    border-radius: 0.65rem;
}

.bs-auth-invitation-summary__org {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bs-navy);
    line-height: 1.35;
}

.bs-auth-invitation-summary__role {
    margin-top: 0.45rem;
    font-size: 0.875rem;
    color: var(--bs-text-muted);
}

.bs-auth-invitation-summary__role strong {
    color: var(--bs-navy);
}

.bs-auth-invitation-hint {
    margin: 0 0 1.5rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--bs-text-muted);
    text-align: center;
}

@media (max-width: 480px) {
    .bs-auth-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .bs-auth__logo {
        width: min(100%, 18rem);
    }

    .bs-auth-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
