/* ==========================================================================
   SignGov - public auth screens
   ========================================================================== */

:root {
    --sg-blue-dark: #05374f;
    --sg-blue: #125A7B;
    --sg-teal: #56A3A9;
    --sg-teal-dark: #30565a;
    --sg-bg: #F4F4F4;
    --sg-text: #243b47;
    --sg-muted: #667985;
    --sg-line: rgba(18, 90, 123, 0.12);
    --sg-white: #FFFFFF;
    --sg-radius: 12px;
    --sg-radius-sm: 8px;
    --sg-shadow: 0 20px 60px rgba(5, 55, 79, 0.14);
    --sg-shadow-sm: 0 8px 24px rgba(5, 55, 79, 0.10);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--sg-bg);
    color: var(--sg-text);
    font-family: 'Roboto', sans-serif;
}

.sg-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background:
        radial-gradient(circle at 12% 18%, rgba(86, 163, 169, 0.18), transparent 28%),
        linear-gradient(135deg, #f7fbfc 0%, #edf4f6 45%, #f5f7f8 100%);
}

.sg-auth-shell {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
}

.sg-auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 48px;
    background:
        linear-gradient(145deg, rgba(5, 55, 79, 0.93), rgba(48, 86, 90, 0.88)),
        url("../../Content/img/FundoLogin.jpeg") center / cover no-repeat;
    color: var(--sg-white);
    position: relative;
    overflow: hidden;
}

.sg-auth-aside::after {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    pointer-events: none;
}

.sg-auth-aside-content,
.sg-auth-aside-footer {
    position: relative;
    z-index: 1;
}

.sg-auth-brand {
    display: inline-flex;
    margin-bottom: 44px;
}

.sg-auth-brand img {
    width: 184px;
    max-width: 100%;
    height: auto;
}

.sg-auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sg-auth-title {
    margin: 18px 0 16px;
    color: var(--sg-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.16;
}

.sg-auth-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.65;
}

.sg-auth-aside-actions {
    margin-top: 28px;
}

.sg-auth-aside-footer {
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
}

.sg-auth-main {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.sg-auth-card {
    width: min(100%, 480px);
    background: var(--sg-white);
    border: 1px solid var(--sg-line);
    border-radius: 18px;
    box-shadow: var(--sg-shadow);
    padding: 42px;
}

.sg-auth-card-wide {
    width: min(100%, 620px);
}

.sg-auth-card-logo {
    display: none;
    margin-bottom: 28px;
    text-align: center;
}

.sg-auth-card-logo img {
    width: 180px;
    max-width: 100%;
    height: auto;
}

.sg-auth-card h1 {
    margin: 0 0 10px;
    color: var(--sg-blue);
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.sg-auth-card p {
    color: var(--sg-muted);
    font-size: 15px;
    line-height: 1.6;
}

.sg-auth-card .form-group {
    margin-bottom: 18px;
}

.sg-auth-card .form-control,
.sg-auth-card select.form-control {
    height: 48px;
    border-radius: var(--sg-radius-sm);
    border: 1px solid #cfdbe0;
    background-color: #f8fbfc;
    color: var(--sg-text);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.sg-auth-card .form-control:focus,
.sg-auth-card select.form-control:focus {
    background-color: var(--sg-white);
    border-color: var(--sg-teal);
    box-shadow: 0 0 0 3px rgba(86, 163, 169, 0.22);
}

.sg-auth-button {
    min-height: 48px;
    border-radius: var(--sg-radius-sm);
    border: 2px solid transparent;
    background: var(--sg-blue);
    color: var(--sg-white);
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--sg-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.sg-auth-button:hover,
.sg-auth-button:focus {
    background: #0e4a63;
    color: var(--sg-white);
    transform: translateY(-1px);
}

.sg-auth-button-light {
    background: var(--sg-white);
    color: var(--sg-blue);
}

.sg-auth-button-light:hover,
.sg-auth-button-light:focus {
    background: #eef4f6;
    color: var(--sg-blue);
}

.sg-auth-button-outline {
    background: transparent;
    color: var(--sg-white);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.sg-auth-button-outline:hover,
.sg-auth-button-outline:focus {
    background: var(--sg-white);
    color: var(--sg-blue);
}

.sg-auth-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: var(--sg-blue);
    font-weight: 700;
    cursor: pointer;
}

.sg-auth-link:hover,
.sg-auth-link:focus {
    color: var(--sg-teal-dark);
    text-decoration: underline;
}

.sg-auth-muted-action {
    margin-top: 22px;
    text-align: center;
}

.sg-auth-response {
    display: block;
    margin-top: 16px;
    min-height: 0;
}

.sg-auth-card .error,
.sg-auth-card .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #9F4646;
    font-size: 12px;
    font-weight: 700;
}

.sg-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--sg-radius-sm);
    border: 1px solid var(--sg-line);
    background: #f8fbfc;
    color: var(--sg-text);
    box-shadow: 0 8px 22px rgba(5, 55, 79, 0.08);
}

.sg-auth-alert-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-top: 1px;
    font-weight: 800;
}

.sg-auth-alert-body {
    min-width: 0;
    display: block;
}

.sg-auth-alert-title {
    display: block;
    margin-bottom: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.3;
}

.sg-auth-alert-text {
    display: block;
    color: var(--sg-muted);
    font-size: 13px;
    line-height: 1.45;
}

.sg-auth-alert-success {
    border-color: rgba(47, 125, 79, 0.24);
    background: #f2fbf6;
}

.sg-auth-alert-success .sg-auth-alert-title {
    color: #2f7d4f;
}

.sg-auth-alert-success .sg-auth-alert-icon {
    background: #2f7d4f;
    color: #ffffff;
}

.sg-auth-alert-success .sg-auth-alert-icon::before {
    content: "";
    width: 8px;
    height: 14px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.sg-auth-alert-error {
    border-color: rgba(159, 70, 70, 0.24);
    background: #fff7f7;
}

.sg-auth-alert-error .sg-auth-alert-title {
    color: #9f4646;
}

.sg-auth-alert-error .sg-auth-alert-icon {
    background: #9f4646;
    color: #ffffff;
}

.sg-auth-alert-error .sg-auth-alert-icon::before {
    content: "!";
    font-size: 18px;
    line-height: 1;
}

.sg-auth-alert-warning {
    border-color: rgba(189, 130, 36, 0.26);
    background: #fff9ef;
}

.sg-auth-alert-warning .sg-auth-alert-title {
    color: #9a6518;
}

.sg-auth-alert-warning .sg-auth-alert-icon {
    background: #bd8224;
    color: #ffffff;
}

.sg-auth-alert-warning .sg-auth-alert-icon::before {
    content: "!";
    font-size: 18px;
    line-height: 1;
}

.sg-auth-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sg-auth-field-row-state {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
}

@media (max-width: 991.98px) {
    .sg-auth-shell {
        grid-template-columns: 1fr;
    }

    .sg-auth-aside {
        min-height: auto;
        padding: 34px 24px;
    }

    .sg-auth-aside::after {
        inset: 14px;
        border-radius: 14px;
    }

    .sg-auth-brand {
        margin-bottom: 26px;
    }

    .sg-auth-title {
        font-size: 28px;
    }

    .sg-auth-main {
        padding: 28px 18px 42px;
    }

    .sg-auth-card {
        padding: 30px 22px;
        border-radius: 14px;
    }
}

@media (max-width: 767.98px) {
    .sg-auth-main {
        order: -1;
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .sg-auth-aside {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .sg-auth-brand {
        margin-bottom: 18px;
    }

    .sg-auth-title {
        margin-top: 14px;
    }
}

@media (max-width: 575.98px) {
    .sg-auth-aside {
        padding: 28px 18px;
    }

    .sg-auth-title {
        font-size: 24px;
    }

    .sg-auth-field-row,
    .sg-auth-field-row-state {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
