/*
|--------------------------------------------------------------------------
| SGI UBERTEC - LOGIN V2
|--------------------------------------------------------------------------
| Identidade principal: var(--sgi-primary)
| Mantém o background original em assets/img/login.png
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #25292d;
    background: url('../img/login.png') center center / cover no-repeat fixed;
}

.sgi-login-overlay {
    position: fixed;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(12, 14, 16, 0.72) 0%,
            rgba(20, 22, 24, 0.58) 45%,
            rgba(18, 20, 22, 0.66) 100%
        );
}

.sgi-login-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 18px;
}

.sgi-login-card {
    width: 100%;
    max-width: 940px;
    min-height: 590px;
    display: flex;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.sgi-brand-panel {
    position: relative;
    width: 44%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 46px 42px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(var(--sgi-primary-rgb), 0.32), transparent 35%),
        linear-gradient(145deg, #171a1d 0%, #24282d 58%, #111315 100%);
}

.sgi-brand-panel::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -105px;
    bottom: -105px;
    border: 48px solid rgba(var(--sgi-primary-rgb), 0.18);
    border-radius: 50%;
}

.sgi-brand-content,
.sgi-brand-footer {
    position: relative;
    z-index: 2;
}

.sgi-logo {
    display: block;
    max-width: 190px;
    max-height: 88px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 0 46px;
}

.sgi-eyebrow {
    display: block;
    margin-bottom: 15px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: var(--sgi-primary);
}

.sgi-brand-panel h1 {
    margin: 0 0 18px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.sgi-brand-panel p {
    max-width: 310px;
    margin: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 14px;
    line-height: 1.65;
}

.sgi-brand-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sgi-brand-line {
    width: 35px;
    height: 2px;
    background: var(--sgi-primary);
}

.sgi-form-panel {
    width: 56%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: #fff;
}

.sgi-form-wrapper {
    width: 100%;
    max-width: 390px;
}

.sgi-form-heading {
    margin-bottom: 28px;
}

.sgi-accent {
    display: block;
    width: 38px;
    height: 4px;
    margin-bottom: 17px;
    border-radius: 20px;
    background: var(--sgi-primary);
}

.sgi-form-heading h2 {
    margin: 0 0 7px;
    color: #202429;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.sgi-form-heading p {
    margin: 0;
    color: #868d94;
    font-size: 14px;
}

.sgi-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--sgi-primary-rgb), 0.18);
    border-radius: 9px;
    background: rgba(var(--sgi-primary-rgb), 0.07);
    color: var(--sgi-primary-dark);
    font-size: 13px;
    line-height: 1.45;
}

.sgi-alert i {
    margin-top: 2px;
}

.sgi-field {
    margin-bottom: 17px;
}

.sgi-field label {
    display: block;
    margin: 0 0 7px;
    color: #474d53;
    font-size: 12px;
    font-weight: 700;
}

.sgi-input-wrap {
    position: relative;
}

.sgi-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    transform: translateY(-50%);
    color: #a2a7ac;
    font-size: 13px;
}

.sgi-input-wrap input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 44px 0 42px;
    border: 1px solid #dde1e4;
    border-radius: 8px;
    outline: none;
    background: #fafbfb;
    color: #292d31;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sgi-input-wrap input:focus {
    border-color: var(--sgi-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--sgi-primary-rgb), 0.10);
}

.sgi-input-wrap input::placeholder {
    color: #adb2b7;
}

.sgi-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    outline: none;
    background: transparent;
    color: #92999f;
    cursor: pointer;
}

.sgi-password-toggle:hover,
.sgi-password-toggle:focus {
    color: var(--sgi-primary);
}

.sgi-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 17px;
}

.sgi-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #737a80;
    font-size: 12px;
    cursor: pointer;
}

.sgi-remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--sgi-primary);
}

.sgi-captcha {
    min-height: 78px;
    margin: 0 0 18px;
    overflow: hidden;
}

.sgi-captcha .g-recaptcha {
    transform-origin: left top;
}

.sgi-login-button {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 0;
    border-radius: 8px;
    outline: none;
    background: var(--sgi-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(var(--sgi-primary-rgb), 0.20);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.sgi-login-button:hover,
.sgi-login-button:focus {
    background: var(--sgi-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(var(--sgi-primary-rgb), 0.26);
}

.sgi-login-button:disabled {
    opacity: .78;
    cursor: wait;
    transform: none;
}

.sgi-access-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    color: #a1a6ab;
    font-size: 11px;
}

.sgi-access-note i {
    color: var(--sgi-primary);
}

.sgi-page-footer {
    margin-top: 17px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

@media (max-width: 850px) {
    .sgi-login-card {
        max-width: 510px;
        min-height: 0;
        flex-direction: column;
    }

    .sgi-brand-panel,
    .sgi-form-panel {
        width: 100%;
    }

    .sgi-brand-panel {
        min-height: 210px;
        padding: 30px 34px;
    }

    .sgi-logo {
        max-width: 160px;
        max-height: 65px;
        margin-bottom: 24px;
    }

    .sgi-brand-panel h1 {
        font-size: 24px;
    }

    .sgi-brand-panel p,
    .sgi-brand-footer {
        display: none;
    }

    .sgi-form-panel {
        padding: 34px;
    }
}

@media (max-width: 420px) {
    .sgi-login-page {
        padding: 12px;
        justify-content: flex-start;
    }

    .sgi-login-card {
        margin-top: 12px;
        border-radius: 13px;
    }

    .sgi-brand-panel {
        min-height: 175px;
        padding: 25px 24px;
    }

    .sgi-logo {
        max-width: 145px;
        margin-bottom: 18px;
    }

    .sgi-brand-panel h1 {
        font-size: 21px;
    }

    .sgi-form-panel {
        padding: 28px 22px;
    }

    .sgi-form-heading h2 {
        font-size: 24px;
    }

    .sgi-captcha {
        width: 100%;
        overflow: visible;
    }

    .sgi-captcha .g-recaptcha {
        transform: scale(.87);
        transform-origin: left top;
        margin-bottom: -10px;
    }
}
