.auth-page {
    display: grid;
    grid-template-columns: minmax(440px, 0.94fr) minmax(520px, 1.06fr);
    min-height: calc(100vh - 52px);
}

.auth-identity {
    align-items: center;
    background: #163f5e;
    color: #fff;
    display: flex;
    justify-content: center;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 5.25rem);
    position: relative;
}

.auth-identity::before,
.auth-identity::after {
    border: 1px solid rgba(80, 176, 184, 0.24);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    position: absolute;
}

.auth-identity::before {
    height: 360px;
    right: -190px;
    top: -150px;
    width: 360px;
}

.auth-identity::after {
    bottom: -210px;
    height: 430px;
    left: -230px;
    width: 430px;
}

.auth-identity-content {
    max-width: 520px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.auth-identity-content > .auth-logo-large {
    align-self: flex-start;
}

.auth-logo {
    align-items: center;
    background: #f7fafb;
    border: 1px solid #d9e7eb;
    border-radius: 0.85rem;
    color: var(--sigecap-primary);
    display: inline-flex;
    flex: 0 0 58px;
    font-size: 1.45rem;
    height: 58px;
    justify-content: center;
    padding: 0.18rem;
    width: 58px;
    overflow: hidden;
}

.auth-logo img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.auth-logo-large {
    align-items: center;
    background: rgba(248, 251, 252, 0.99);
    border: 1px solid rgba(123, 195, 200, 0.42);
    border-radius: 1.35rem;
    box-shadow: 0 20px 50px rgba(5, 28, 43, 0.18);
    display: flex;
    flex: 0 0 auto;
    font-size: 2rem;
    height: clamp(250px, 20vw, 320px);
    justify-content: center;
    margin: 0 0 1.55rem;
    overflow: hidden;
    padding: clamp(0.8rem, 1.2vw, 1.2rem);
    width: clamp(250px, 20vw, 320px);
}

.auth-logo-large img {
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.auth-eyebrow,
.auth-card-eyebrow {
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.auth-eyebrow {
    color: #a8dce0;
}

.auth-product-name {
    display: block;
    font-size: clamp(2.35rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.auth-product-description {
    color: #d7e8ec;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.55;
    margin: 1.25rem 0 2.5rem;
    max-width: 450px;
}

.auth-institution {
    border-left: 3px solid var(--sigecap-accent);
    display: flex;
    flex-direction: column;
    padding-left: 0.85rem;
}

.auth-institution span {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.auth-institution small {
    color: #bcd9df;
    font-size: 0.75rem;
}

.auth-form-area {
    align-items: center;
    background: var(--sigecap-body-bg);
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.5rem, 4.5vw, 4rem);
}

.auth-form-wrap {
    max-width: 460px;
    min-width: 0;
    width: 100%;
}

.auth-mobile-brand {
    align-items: center;
    display: none;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.auth-mobile-brand > div:last-child {
    display: flex;
    flex-direction: column;
}

.auth-mobile-brand strong {
    color: var(--sigecap-primary);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.auth-mobile-brand span {
    color: var(--sigecap-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.auth-card {
    background: var(--sigecap-surface);
    border: 1px solid var(--sigecap-border-soft);
    border-radius: var(--sigecap-radius-lg);
    box-shadow: var(--sigecap-shadow);
    padding: clamp(1.35rem, 3vw, 2.25rem);
    min-width: 0;
}

.auth-card form,
.auth-card form > *,
.auth-input-group,
.auth-input-group .form-control {
    max-width: 100%;
    min-width: 0;
}

.auth-card-heading {
    margin-bottom: 1.6rem;
}

.auth-card-eyebrow {
    color: var(--sigecap-secondary);
}

.auth-card-heading h1 {
    color: var(--sigecap-primary);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 760;
    letter-spacing: -0.025em;
    margin: 0;
}

.auth-card-heading > p:last-child {
    color: var(--sigecap-text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 0.55rem 0 0;
}

.auth-input-group {
    position: relative;
}

.auth-input-group .form-control {
    min-height: 48px;
    padding-left: 2.65rem;
}

.auth-input-group .auth-password-input {
    padding-right: 3rem;
}

.auth-input-icon {
    color: #8291a1;
    font-size: 1rem;
    left: 0.95rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #718195;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 46px;
    z-index: 5;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--sigecap-primary);
    outline: none;
}

.auth-inline-link,
.auth-back-link,
.auth-secondary-action {
    color: var(--sigecap-secondary);
    font-size: 0.75rem;
    font-weight: 650;
}

.auth-back-link {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    margin-bottom: 1.35rem;
}

.auth-secondary-action {
    display: block;
    margin-top: 1rem;
    text-align: center;
}

.auth-remember {
    color: var(--sigecap-text-muted);
    font-size: 0.78rem;
}

.auth-remember .form-check-input:checked {
    background-color: var(--sigecap-primary);
    border-color: var(--sigecap-primary);
}

.auth-submit-btn {
    align-items: center;
    display: flex;
    font-size: 0.78rem;
    justify-content: center;
    letter-spacing: 0.045em;
    min-height: 48px;
    position: relative;
}

.auth-submit-btn .bi {
    position: absolute;
    right: 1rem;
}

.auth-help-text {
    align-items: center;
    color: var(--sigecap-text-muted);
    display: flex;
    font-size: 0.7rem;
    gap: 0.4rem;
    justify-content: center;
    margin: 1.15rem 0 0;
}

.auth-help-text .bi {
    color: var(--sigecap-success);
}

.password-requirements {
    background: var(--sigecap-surface-muted);
    border: 1px solid var(--sigecap-border-soft);
    border-radius: var(--sigecap-radius-sm);
    padding: 0.75rem 0.85rem;
}

.password-requirements p {
    color: var(--sigecap-text);
    font-size: 0.72rem;
    font-weight: 650;
    margin: 0 0 0.45rem;
}

.password-requirements ul {
    display: grid;
    gap: 0.3rem 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements li {
    align-items: center;
    color: var(--sigecap-text-muted);
    display: flex;
    font-size: 0.67rem;
    gap: 0.35rem;
}

.password-requirements li.is-valid {
    color: var(--sigecap-success);
}

.auth-error-icon {
    align-items: center;
    background: #fff3df;
    border-radius: 50%;
    color: var(--sigecap-warning);
    display: inline-flex;
    font-size: 1.5rem;
    height: 56px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 56px;
}

.dashboard-welcome {
    align-items: center;
    background: #edf4f8;
    border: 1px solid #dce8ef;
    border-radius: var(--sigecap-radius);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding: 0.85rem 1rem;
}

.dashboard-welcome > div:first-child {
    display: flex;
    flex-direction: column;
}

.dashboard-welcome-label {
    color: var(--sigecap-text-muted);
    font-size: 0.68rem;
}

.dashboard-welcome strong {
    color: var(--sigecap-primary);
    font-size: 1rem;
}

.dashboard-welcome dl {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.dashboard-welcome dl > div {
    display: flex;
    flex-direction: column;
}

.dashboard-welcome dt {
    color: var(--sigecap-text-muted);
    font-size: 0.64rem;
    font-weight: 500;
}

.dashboard-welcome dd {
    color: var(--sigecap-primary);
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0.1rem 0 0;
}

@media (min-width: 900px) and (max-width: 1199.98px) {
    .auth-page {
        grid-template-columns: minmax(360px, 0.88fr) minmax(480px, 1.12fr);
    }

    .auth-identity {
        padding: 2.5rem;
    }

    .auth-logo-large {
        height: 235px;
        width: 235px;
    }

    .auth-product-name {
        font-size: 2.75rem;
    }

    .auth-product-description {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }
}

@media (max-width: 899.98px) {
    .auth-page {
        display: block;
    }

    .auth-identity {
        display: none;
    }

    .auth-form-area {
        min-height: calc(100vh - 52px);
    }

    .auth-mobile-brand {
        display: flex;
    }
}

@media (max-width: 899.98px) {
    .auth-mobile-brand .auth-logo img {
        object-fit: contain;
    }
}

@media (max-width: 575.98px) {
    .auth-form-area {
        align-items: flex-start;
        max-width: 100%;
        padding: 1.25rem 0.85rem 1.5rem;
        width: 100%;
    }

    .auth-form-wrap {
        max-width: none;
    }

    .auth-card {
        padding: 1.3rem 1.1rem;
    }

    .auth-mobile-brand {
        justify-content: center;
        text-align: left;
    }

    .auth-card .d-flex.justify-content-between {
        flex-wrap: wrap;
        row-gap: 0.35rem !important;
    }

    .auth-inline-link {
        margin-left: auto;
        white-space: normal;
    }

    .app-footer-compact span:last-child {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .password-requirements ul {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }

    .dashboard-welcome dl {
        gap: 1rem;
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 390px) {
    .auth-mobile-brand {
        margin-bottom: 1rem;
    }

    .auth-logo {
        flex-basis: 52px;
        height: 52px;
        width: 52px;
    }

    .auth-card-heading {
        margin-bottom: 1.25rem;
    }
}
