﻿
/* ===== Design tokens (from Figma) ===== */
:root {
    --sd-border: #CBD2E0;
    --sd-text: #1A1A1A;
    --sd-placeholder: #8C93A3;
    --sd-label: #1A1A1A;
    --sd-yellow: #FFC42E;
    --sd-card-radius: 28px;
    --sd-input-radius: 8px;
}

.auth-Form {
    width: 640px;
}

.authentication-area {
    background: linear-gradient(135deg, #d9a0c8 0%, #b8c8e8 50%, #a0c4d8 100%);
}

.sd-wrap {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 16px;
}

.sd-card {
    display: flex;
    background: #FFFFFF;
    border-radius: var(--sd-card-radius);
    box-shadow: 0 30px 60px rgba(20, 20, 43, 0.08);
    overflow: hidden;
    min-height: 880px;
}

/* ---- Left: Form panel ---- */
.sd-form-panel {
    flex: 1 1 58%;
    padding: 56px 64px;
}

.sd-welcome {
    font-size: 16px;
    color: #6B7280;
    margin: 0 0 8px;
}

.sd-heading {
    font-size: 30px;
    font-weight: 800;
    color: #1A1A1A;
    margin: 0 0 32px;
    line-height: 1.25;
}

.sd-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.sd-field {
    flex: 1 1 0;
    min-width: 0;
}

    .sd-field label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: var(--sd-label);
        margin-bottom: 8px;
    }

    .sd-field .color-red {
        color: #E5484D;
        margin-left: 2px;
    }

/* ===== Text Input — exact spec ===== */
.sd-input {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 11px 12px;
    gap: 4px;
    width: 100%;
    height: 44px;
    background: #FFFFFF;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-input-radius);
    font-size: 15px;
    color: var(--sd-text);
    flex: none;
    align-self: stretch;
    flex-grow: 0;
    outline: none;
    transition: border-color .15s ease;
}

    .sd-input::placeholder {
        color: var(--sd-placeholder);
    }

    .sd-input:focus {
        border-color: #1A1A1A;
    }

select.sd-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'><path d='M4 6l4 4 4-4' stroke='%238C93A3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* password field with show/hide icon inside the 44px box */
.sd-password-wrap {
    position: relative;
    width: 100%;
}

    .sd-password-wrap .sd-input {
        padding-right: 40px;
    }

.sd-show-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--sd-placeholder);
    display: flex;
    align-items: center;
}

    .sd-show-password svg {
        width: 18px;
        height: 18px;
    }

/* checkbox row */
.sd-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 28px;
}

    .sd-checkbox-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 1px;
        accent-color: #1A1A1A;
        border: 1px solid var(--sd-border);
        flex: none;
    }

    .sd-checkbox-row label {
        font-size: 14px;
        color: #4B5563;
        line-height: 1.5;
    }

    .sd-checkbox-row a {
        color: #1A1A1A;
        text-decoration: underline;
    }

/* footer: submit + sign-in link */
.sd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.sd-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111111;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

    .sd-submit svg {
        width: 16px;
        height: 16px;
    }

.sd-have-account {
    font-size: 14px;
    color: #4B5563;
}

    .sd-have-account a {
        color: #2563EB;
        font-weight: 600;
        text-decoration: none;
    }

/* ---- Right: Illustration panel ---- */
.sd-illustration-panel {
    flex: 1 1 42%;
    background: var(--sd-yellow);
    border-radius: var(--sd-card-radius);
    margin: 16px 16px 16px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

    .sd-illustration-panel svg {
        width: 100%;
        height: auto;
        max-width: 560px;
    }

.login-right {
    width: 380px;
    background: #fecd46;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.login-illus-scene {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateX(-36%) translateY(-50%);
    display: flex;
    align-items: flex-end;
    gap: 0;
}

    .login-illus-scene .scene-char {
        height: 37vh;
        width: 404px;
        position: relative;
        z-index: 1;
        margin-left: -25px;
    }

    .login-illus-scene .scene-cactus {
        position: relative;
        z-index: 0;
        pointer-events: none;
        height: 401px;
        width: 291px;
        z-index: 1;
        margin-left: -65px;
    }


