/* BBISE Institute — modern auth theme */
:root {
    --bb-primary: #0b2f5b;
    --bb-primary-dark: #061a36;
    --bb-primary-light: #174f86;
    --bb-accent: #d7b85b;
    --bb-surface: #ffffff;
    --bb-surface-muted: #f4f7fb;
    --bb-text: #10233f;
    --bb-text-muted: #64748b;
    --bb-border: #d9e4f2;
    --bb-danger: #c0392b;
    --bb-shadow: 0 24px 48px rgba(8, 35, 66, 0.13);
    --bb-radius: 1rem;
    --bb-font: "BBISE Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.login-body {
    height: 100%;
    margin: 0;
    font-family: var(--bb-font);
    color: var(--bb-text);
    background: var(--bb-surface-muted);
    -webkit-font-smoothing: antialiased;
}

.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr 1fr;
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    background: linear-gradient(145deg, var(--bb-primary-dark) 0%, var(--bb-primary) 52%, var(--bb-primary-light) 100%);
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(215, 184, 91, 0.18) 0%, transparent 40%);
    pointer-events: none;
}

.login-hero::after {
    content: "";
    position: absolute;
    right: -20%;
    bottom: -30%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.login-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 28rem;
}

.login-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.login-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.login-hero__text {
    margin: 0 0 2rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.login-hero__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-hero__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.login-hero__features svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    opacity: 0.9;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--bb-surface-muted);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--bb-surface);
    border: 1px solid var(--bb-border);
    border-radius: calc(var(--bb-radius) + 4px);
    box-shadow: var(--bb-shadow);
}

.login-card__logo {
    display: block;
    width: auto;
    max-width: 120px;
    height: auto;
    max-height: 88px;
    margin: 0 auto 1.25rem;
    object-fit: contain;
}

.login-card__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-card__header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
}

.login-card__header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--bb-text-muted);
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.45;
    border-radius: 0.65rem;
    border: 1px solid transparent;
}

.login-alert--danger {
    color: #7f1d1d;
    background: #fef2f2;
    border-color: #fecaca;
}

.login-alert--warning {
    color: #78350f;
    background: #fffbeb;
    border-color: #fde68a;
}

.login-alert--success {
    color: #14532d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.login-field {
    margin-bottom: 1.15rem;
}

.login-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bb-text);
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrap svg.icon-left {
    position: absolute;
    left: 0.9rem;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--bb-text-muted);
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.65rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--bb-text);
    background: var(--bb-surface-muted);
    border: 1px solid var(--bb-border);
    border-radius: 0.65rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.login-input-wrap input::placeholder {
    color: #94a3b8;
}

.login-input-wrap input:hover {
    border-color: #b8c7db;
}

.login-input-wrap input:focus {
    outline: none;
    background: var(--bb-surface);
    border-color: var(--bb-primary);
    box-shadow: 0 0 0 3px rgba(11, 47, 91, 0.18);
}

.login-toggle-pw svg {
    width: 1.25rem;
    height: 1.25rem;
    max-width: 1.25rem;
    max-height: 1.25rem;
    display: block;
}

.login-toggle-pw {
    position: absolute;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: var(--bb-text-muted);
    background: transparent;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.login-toggle-pw:hover {
    color: var(--bb-primary);
    background: rgba(11, 47, 91, 0.08);
}

.login-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    font-size: 0.875rem;
}

.login-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--bb-text-muted);
    cursor: pointer;
    user-select: none;
}

.login-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--bb-primary);
}

.login-link {
    color: var(--bb-primary);
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    color: var(--bb-primary-dark);
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--bb-primary) 0%, var(--bb-primary-light) 100%);
    border: none;
    border-radius: 0.65rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(11, 47, 91, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.login-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(11, 47, 91, 0.4);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-submit:focus-visible {
    outline: 2px solid var(--bb-primary-dark);
    outline-offset: 2px;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--bb-text-muted);
    border-top: 1px solid var(--bb-border);
}

.login-footer a {
    color: var(--bb-primary);
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-page__bottom {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--bb-text-muted);
}

.text-danger.validation-summary-errors {
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    background: #fef2f2;
    border-radius: 0.5rem;
    list-style: none;
}

.text-danger.validation-summary-errors ul {
    margin: 0;
    padding-left: 1rem;
}

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: auto;
        padding: 2rem 1.5rem 1.75rem;
    }

    .login-hero__features {
        display: none;
    }

    .login-hero__title {
        font-size: 1.5rem;
    }

    .login-panel {
        padding-top: 0;
        margin-top: -1rem;
    }

    .login-card {
        border-radius: var(--bb-radius) var(--bb-radius) 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit,
    .login-input-wrap input,
    .login-toggle-pw {
        transition: none;
    }
}
