:root {
    --sgd-login-navy: #163355;
    --sgd-login-orange: #ec672a;
    --sgd-login-ink: #24313d;
    --sgd-login-muted: #667684;
    --sgd-login-border: #d8e0e6;
}

* {
    box-sizing: border-box;
}

body.sgd-login-page {
    min-height: 100vh;
    margin: 0;
    background: #f4f7f9;
    color: var(--sgd-login-ink);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.sgd-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(480px, 1.1fr);
}

.sgd-login-brand {
    min-height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: clamp(32px, 5vw, 72px);
    background: var(--sgd-login-navy);
    color: #ffffff;
}

.sgd-login-logos {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sgd-login-logos img:first-child {
    width: 82px;
    height: auto;
}

.sgd-login-logos img:last-child {
    width: 112px;
    height: auto;
    padding: 8px;
    border-radius: 5px;
    background: #ffffff;
}

.sgd-login-brand-copy {
    max-width: 520px;
}

.sgd-login-brand-copy small {
    display: block;
    margin-bottom: 12px;
    color: #f6b08f;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sgd-login-brand-copy h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.08;
}

.sgd-login-brand-copy p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.7;
}

.sgd-login-brand-footer {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
}

.sgd-login-access {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 40px clamp(24px, 7vw, 110px);
    background: #ffffff;
}

.sgd-login-form-wrap {
    width: min(100%, 430px);
}

.sgd-login-form-wrap > small {
    color: var(--sgd-login-orange);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.sgd-login-form-wrap h2 {
    margin: 7px 0 8px;
    color: var(--sgd-login-navy);
    font-size: 27px;
}

.sgd-login-form-wrap > p {
    margin: 0 0 28px;
    color: var(--sgd-login-muted);
    font-size: 13px;
    line-height: 1.55;
}

.sgd-login-page .form-label {
    margin-bottom: 7px;
    color: var(--sgd-login-navy);
    font-size: 12px;
    font-weight: 600;
}

.sgd-login-page .form-control {
    min-height: 46px;
    border: 1px solid var(--sgd-login-border);
    border-radius: 5px;
    color: var(--sgd-login-ink);
    font-size: 13px;
}

.sgd-login-page .form-control:focus {
    border-color: var(--sgd-login-orange);
    box-shadow: 0 0 0 3px rgba(236, 103, 42, 0.16);
}

.sgd-login-password {
    position: relative;
}

.sgd-login-password .form-control {
    padding-right: 46px;
}

.sgd-password-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--sgd-login-muted);
}

.sgd-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0;
}

.sgd-login-actions .btn-primary {
    min-width: 142px;
    min-height: 42px;
    border-color: var(--sgd-login-navy);
    border-radius: 5px;
    background: var(--sgd-login-navy);
    font-weight: 600;
}

.sgd-forgot-button {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--sgd-login-navy);
    font-size: 11px;
    text-decoration: underline;
}

.sgd-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 18px;
    color: var(--sgd-login-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.sgd-login-divider::before,
.sgd-login-divider::after {
    height: 1px;
    flex: 1;
    background: var(--sgd-login-border);
    content: "";
}

.sgd-google-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--sgd-login-border);
    border-radius: 5px;
    background: #ffffff;
    color: var(--sgd-login-ink);
    font-size: 12px;
    font-weight: 600;
}

.sgd-google-button:hover {
    border-color: #aebbc5;
    color: var(--sgd-login-navy);
}

.sgd-login-help {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--sgd-login-border);
    color: var(--sgd-login-muted);
    font-size: 11px;
    line-height: 1.5;
}

#toast-container > div {
    max-width: min(520px, calc(100vw - 24px));
}

@media (max-width: 860px) {
    .sgd-login-shell {
        grid-template-columns: 1fr;
    }

    .sgd-login-brand {
        min-height: 250px;
        gap: 36px;
        padding: 28px 24px;
    }

    .sgd-login-brand-copy h1 {
        font-size: 30px;
    }

    .sgd-login-brand-copy p {
        font-size: 13px;
    }

    .sgd-login-brand-footer {
        display: none;
    }

    .sgd-login-access {
        padding: 38px 24px 52px;
    }
}

@media (max-width: 430px) {
    .sgd-login-brand {
        min-height: 220px;
    }

    .sgd-login-logos img:first-child {
        width: 66px;
    }

    .sgd-login-logos img:last-child {
        width: 92px;
    }

    .sgd-login-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .sgd-login-actions .btn-primary {
        width: 100%;
    }
}
