* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, sans-serif;
    background: #fff;
    color: #344054;
}

.sg-auth {
    display: flex;
    min-height: 100vh;
}

.sg-auth-visual {
    position: relative;
    display: none;
    width: 42%;
    min-height: 100vh;
    overflow: hidden;
    background: #1b3a22;
}

.sg-auth-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-auth-visual-shade {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 12, 0.26);
}

.sg-auth-panel {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px 32px;
    background: #fff;
}

.sg-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding: 42px 44px 36px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
}

.sg-auth-logo {
    display: block;
    width: auto;
    height: 116px;
    margin: 0 auto 24px;
}

.sg-auth-card h1 {
    margin: 0;
    text-align: center;
    color: #101828;
    font-size: 27px;
    font-weight: 650;
}

.sg-auth-lead {
    margin: 9px 0 0;
    text-align: center;
    color: #667085;
    font-size: 14px;
}

.sg-auth-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.sg-auth-alert {
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #fda29b;
    border-radius: 4px;
    background: #fef3f2;
    color: #b42318;
    font-size: 14px;
}

.sg-auth-alert p {
    margin: 4px 0 0;
}

.sg-field span,
.sg-field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
}

.sg-field-label a {
    color: #4f7f22;
    text-decoration: none;
}

.sg-field-label a:hover {
    text-decoration: underline;
}

.sg-input {
    position: relative;
}

.sg-field input[type="email"],
.sg-field input[type="password"],
.sg-field input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 10px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: #fff;
    color: #101828;
    font: inherit;
    font-size: 14px;
}

.sg-field input[type="password"],
.sg-field input[type="text"].sg-password {
    padding-right: 40px;
}

.sg-field input::placeholder {
    color: #98a2b3;
}

.sg-field input:focus {
    outline: none;
    border-color: #4f7f22;
}

.sg-reveal {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.sg-reveal:hover {
    color: #101828;
}

.sg-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 14px;
}

.sg-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4f7f22;
}

.sg-submit {
    height: 44px;
    border: 0;
    border-radius: 4px;
    background: #4f7f22;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.sg-submit:hover {
    background: #426c1c;
}

.sg-captcha {
    display: flex;
    justify-content: center;
}

.sg-auth-copy {
    margin: 18px 0 0;
    text-align: center;
    color: #667085;
    font-size: 12px;
}

.sg-auth-copy a {
    color: #344054;
}

@media (min-width: 960px) {
    .sg-auth-visual {
        display: block;
        order: 2;
    }

    .sg-auth-panel {
        order: 1;
    }
}

@media (min-width: 960px) and (max-height: 700px) {
    .sg-auth-panel {
        padding: 14px 32px;
    }

    .sg-auth-card {
        padding: 18px 36px 14px;
    }

    .sg-auth-logo {
        height: 72px;
        margin-bottom: 8px;
    }

    .sg-auth-card h1 {
        font-size: 23px;
    }

    .sg-auth-lead {
        margin-top: 3px;
    }

    .sg-auth-card form {
        gap: 10px;
        margin-top: 14px;
    }

    .sg-field span,
    .sg-field-label {
        margin-bottom: 5px;
    }

    .sg-field input[type="email"],
    .sg-field input[type="password"],
    .sg-field input[type="text"],
    .sg-reveal {
        height: 38px;
    }

    .sg-submit {
        height: 38px;
    }

    .sg-auth-copy {
        margin-top: 10px;
    }
}
