/* login.css — 딜리 브랜드 색(파랑·마젠타·주황) 기반 */
:root {
    --brand: #0a6fd0;
    --brand-dark: #0857a6;
    --brand-soft: #e8f1fd;
    --magenta: #d9065f;
    --orange: #f7901e;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f4f6fb;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(380px, 1.05fr) 1fr;
    min-height: 100vh;
}

/* ===== 왼쪽 브랜드 영역 ===== */
.brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.10) 0, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(217, 6, 95, 0.35) 0, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(247, 144, 30, 0.30) 0, transparent 40%),
        linear-gradient(145deg, #0b3f7a 0%, var(--brand) 55%, #1a86e6 100%);
}

.brand-panel::after {
    /* 은은한 격자 패턴 */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.brand-top,
.brand-copy,
.brand-stripe {
    position: relative;
    z-index: 1;
}

.brand-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}

.brand-copy h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-copy h1 span {
    background: linear-gradient(90deg, #ffffff, #ffd6a3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.brand-features {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.brand-features i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-stripe {
    display: flex;
    gap: 6px;
}

.brand-stripe i {
    width: 44px;
    height: 6px;
    border-radius: 3px;
    background: #ffffff;
}

.brand-stripe i:nth-child(1) { background: #4fb0ff; }
.brand-stripe i:nth-child(2) { background: var(--magenta); }
.brand-stripe i:nth-child(3) { background: var(--orange); }

/* ===== 오른쪽 폼 영역 ===== */
.form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    gap: 24px;
}

.form-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px 36px 36px;
    box-shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.form-logo {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 24px;
}

.form-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.4px;
}

.form-sub {
    margin-top: 6px;
    margin-bottom: 26px;
    font-size: 14px;
    color: var(--muted);
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.field-box {
    position: relative;
    display: flex;
    align-items: center;
}

.field-box > i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.field-box input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    border: 1px solid #d5dbe5;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.field-box input::placeholder {
    color: #a0aec0;
}

.field-box input:focus {
    border-color: var(--brand);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(10, 111, 208, 0.12);
}

.pw-toggle {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
}

.pw-toggle:hover {
    background: #eef2f7;
    color: var(--text);
}

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

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.remember-me input {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--brand);
}

.login-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand) 0%, #1f86ea 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px -10px rgba(10, 111, 208, 0.7);
    transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
}

.login-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 14px 24px -12px rgba(10, 111, 208, 0.8);
}

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

.error-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--danger);
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.error-message i {
    margin-top: 2px;
}

.form-footer {
    font-size: 12px;
    color: #94a3b8;
}

/* ===== 좁은 화면 ===== */
@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

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

    .brand-copy h1 {
        font-size: 30px;
    }

    .brand-features,
    .brand-copy p {
        display: none;
    }

    .brand-stripe {
        margin-top: 16px;
    }

    .form-card {
        padding: 28px 22px;
    }
}
