﻿/* ============ Layout shell: split visual + form ============ */

.login-page {
    min-height: 100vh;
    display: flex;
}

/* ---------- Left: branded visual panel ---------- */

.login-visual {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(201, 129, 44, 0.22), transparent 45%),
        radial-gradient(circle at 82% 78%, rgba(201, 129, 44, 0.14), transparent 50%),
        linear-gradient(155deg, #0f172a 0%, #16213a 45%, #1c2b4a 100%);
}

/* subtle dot-grid texture, self-contained (no external image request) */
.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.6;
    pointer-events: none;
}

.login-visual-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 129, 44, 0.35), transparent 70%);
    filter: blur(10px);
    top: -120px;
    right: -140px;
    pointer-events: none;
}

.login-visual-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    color: #f4f6fa;
}

.visual-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #e7a655;
    margin-bottom: 24px;
}

.visual-title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.visual-subtitle {
    margin: 0 0 32px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(244, 246, 250, 0.72);
}

.visual-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .visual-highlights li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 14px;
        color: rgba(244, 246, 250, 0.88);
    }

    .visual-highlights i {
        flex: none;
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        color: #e7a655;
    }

/* ---------- Right: form panel ---------- */

.login-form-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface, #ffffff);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 360px;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 30px;
}

.login-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft, #fbeee0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent, #c9812c);
    margin-bottom: 10px;
}

.login-app-name {
    margin: 0;
    font-weight: 650;
    font-size: 20px;
    color: var(--ink, #1c2430);
}

.login-tagline {
    margin: 0;
    font-size: 13.5px;
    color: var(--graphite, #5b6472);
}

.login-error {
    background: #fdecea;
    border: 1px solid #f4c7c1;
    color: #a4322a;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.login-field {
    margin-bottom: 16px;
}

    .login-field label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--graphite, #5b6472);
        margin-bottom: 6px;
    }

    .login-field .form-control {
        width: 100%;
        padding: 10px 13px;
        border: 1px solid var(--hairline, #e3e7ed);
        border-radius: 8px;
        font-size: 14px;
        color: var(--ink, #1c2430);
        background: var(--surface, #ffffff);
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .login-field .form-control:focus {
            outline: none;
            border-color: var(--accent, #c9812c);
            box-shadow: 0 0 0 3px var(--accent-soft, #fbeee0);
        }

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--graphite, #5b6472);
    cursor: pointer;
}

.login-link {
    font-size: 13px;
    color: var(--accent, #c9812c);
    text-decoration: none;
}

    .login-link:hover {
        text-decoration: underline;
    }

.login-submit {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: var(--accent, #c9812c);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.05s ease;
}

    .login-submit:hover {
        filter: brightness(0.95);
    }

    .login-submit:active {
        transform: translateY(1px);
    }

    .login-submit:disabled {
        opacity: 0.65;
        cursor: default;
    }

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 26px;
    font-size: 12px;
    color: var(--graphite, #5b6472);
}

/* ---------- Responsive: stack on narrow viewports ---------- */

@media (max-width: 900px) {
    .login-visual {
        display: none;
    }

    .login-form-panel {
        background: var(--surface-muted, #f7f8fa);
    }

    .login-card {
        background: var(--surface, #ffffff);
        border: 1px solid var(--hairline, #e3e7ed);
        border-radius: 14px;
        padding: 32px 26px;
        box-shadow: 0 1px 3px rgba(20, 24, 32, 0.05);
    }

    .login-brand {
        align-items: center;
        text-align: center;
    }

    .login-mark {
        margin: 0 auto 10px;
    }
}
