* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
    color: #1b1e2b;
    background: #eef0f6;
}

.auth-shell {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(16, 20, 43, 0.35);
}

/* ---- Brand panel ---- */

.auth-brand {
    position: relative;
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    padding: 52px 44px;
    background: linear-gradient(155deg, #10142b 0%, #1c2352 55%, #2a3374 100%);
    color: #eef0ff;
    overflow: hidden;
}

.auth-brand-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -200px;
    top: -160px;
    background: radial-gradient(circle at center, rgba(91, 110, 245, 0.35), transparent 65%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}

.auth-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #5b6ef5, #7c8cff);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.auth-logo-word {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.auth-headline {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 16px;
    color: #ffffff;
}

.auth-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: #b8bce6;
    margin: 0 0 36px;
}

.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #dfe1fa;
}

.auth-feature-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7c8cff;
    box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.18);
}

/* ---- Form panel ---- */

.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
}

.auth-form {
    width: 100%;
    max-width: 320px;
}

.auth-form-head {
    margin-bottom: 28px;
}

.auth-form-head h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #12142a;
}

.auth-form-head p {
    margin: 0;
    font-size: 13.5px;
    color: #6b7280;
}

.auth-alert {
    display: flex;
    align-items: center;
    min-height: 38px;
    margin-bottom: 16px;
    padding: 0 14px;
    border-radius: 8px;
    background: #fdecec;
    color: #c0392b;
    font-size: 13.5px;
    line-height: 1.4;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.auth-alert.is-visible {
    visibility: visible;
    opacity: 1;
}

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

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3a3d4d;
    margin-bottom: 7px;
}

.auth-field input {
    width: 100%;
    font-size: 15px;
    padding: 11px 14px;
    border: 1.5px solid #e2e4ec;
    border-radius: 9px;
    background: #fff;
    color: #1b1e2b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #5b6ef5;
    box-shadow: 0 0 0 3.5px rgba(91, 110, 245, 0.16);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 44px;
}

.auth-toggle-pw {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #9aa0b4;
    cursor: pointer;
    border-radius: 6px;
}

.auth-toggle-pw svg {
    display: block;
}

.auth-toggle-pw svg.is-hidden {
    display: none;
}

.auth-toggle-pw:hover {
    color: #5b6ef5;
    background: #f1f2fc;
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #5b6ef5, #4658e0);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 8px 20px -6px rgba(91, 110, 245, 0.55);
}

.auth-submit:hover {
    opacity: 0.94;
}

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

/* ---- Responsive ---- */

@media (max-width: 760px) {
    body {
        padding: 0;
    }

    .auth-shell {
        flex-direction: column;
        max-width: none;
        min-height: 100vh;
        border-radius: 0;
    }

    .auth-brand {
        flex: none;
        padding: 36px 28px;
    }

    .auth-headline {
        font-size: 22px;
    }

    .auth-tagline {
        margin-bottom: 24px;
    }

    .auth-features {
        display: none;
    }

    .auth-panel {
        padding: 36px 28px 48px;
    }
}
