:root {
    --bg-900: #0d1f16;
    --bg-700: #173526;
    --mint-300: #9be8b4;
    --mint-200: #c8f4d7;
    --sand-100: #f6f1e7;
    --ink-900: #1c1f1d;
    --ink-600: #5c645f;
    --white: #ffffff;
    --danger: #c62828;
    --ring: rgba(91, 163, 115, 0.26);
}

* {
    box-sizing: border-box;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(155, 232, 180, 0.25), transparent 45%),
        radial-gradient(circle at 95% 75%, rgba(200, 244, 215, 0.35), transparent 40%),
        linear-gradient(140deg, #effaf2 0%, #f6f1e7 40%, #ecf8ef 100%);
    color: var(--ink-900);
    position: relative;
    overflow-x: hidden;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(2px);
    z-index: -1;
}

.bg-orb-1 {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -70px;
    background: radial-gradient(circle at center, rgba(66, 138, 86, 0.45), rgba(66, 138, 86, 0));
}

.bg-orb-2 {
    width: 430px;
    height: 430px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(circle at center, rgba(250, 197, 115, 0.24), rgba(250, 197, 115, 0));
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}

.brand-panel {
    background: linear-gradient(155deg, var(--bg-900), var(--bg-700));
    color: var(--white);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 26px 55px rgba(13, 31, 22, 0.26);
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.brand-panel h1 {
    margin: 20px 0 12px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.15;
}

.brand-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
    max-width: 44ch;
}

.brand-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.brand-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.brand-points i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
}

.form-panel {
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(91, 163, 115, 0.2);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 20px 40px rgba(28, 31, 29, 0.12);
    backdrop-filter: blur(8px);
}

.login-card h2 {
    margin: 0;
    font-size: 33px;
}

.subtitle {
    margin: 8px 0 22px;
    color: var(--ink-600);
}

.login-card label {
    display: block;
    font-weight: 600;
    margin: 14px 0 8px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #577a63;
}

.input-wrap input {
    width: 100%;
    border: 1px solid #d6ded8;
    border-radius: 14px;
    padding: 13px 44px 13px 42px;
    font: inherit;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap input:focus {
    outline: none;
    border-color: #5ba373;
    box-shadow: 0 0 0 4px var(--ring);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #577a63;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
}

.toggle-password:hover {
    background: #edf4ef;
}

.error-message {
    margin-top: 14px;
    border-radius: 12px;
    border: 1px solid rgba(198, 40, 40, 0.26);
    background: rgba(198, 40, 40, 0.08);
    color: var(--danger);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.submit-btn {
    margin-top: 18px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    color: var(--white);
    background: linear-gradient(90deg, #205d3f, #3d8a5d);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(32, 93, 63, 0.26);
}

.submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    display: none;
    animation: spin 0.8s linear infinite;
}

.submit-btn.is-loading .btn-loader {
    display: inline-block;
}

.submit-btn.is-loading .btn-label {
    opacity: 0.9;
}

.api-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: #6b756f;
}

.api-hint code {
    background: #edf4ef;
    padding: 1px 6px;
    border-radius: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .brand-panel {
        padding: 28px 24px;
    }
}

@media (max-width: 560px) {
    .login-layout {
        padding: 18px 14px;
    }

    .login-card {
        padding: 24px 18px;
    }

    .login-card h2 {
        font-size: 29px;
    }
}

.bottom-text {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--ink-600);
}

.bottom-text a, .link {
    color: #3d8a5d;
    text-decoration: none;
    font-weight: 600;
}

.bottom-text a:hover, .link:hover {
    text-decoration: underline;
}

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