/* Login Page Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand: #156af0;
    --brand-dark: #0d47a1;
    --brand-soft: #eef5ff;
    --text: #111827;
    --sub: #6b7280;
    --line: #dbe3ee;
    --line-soft: #edf2f7;
    --bg: #f4f7fb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
            radial-gradient(circle at top left, rgba(21, 106, 240, 0.06), transparent 28%),
            radial-gradient(circle at bottom right, rgba(21, 106, 240, 0.05), transparent 30%),
            var(--bg);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 200px 24px 40px;
}

/* 회원가입 등: 카드를 뷰포트 가로·세로 가운데 */
.login-page.login-page--vcenter {
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.login-page.login-page--vcenter .footer {
    align-items: center;
    text-align: center;
}

.login-container {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border: 1px solid #e8eef5;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 38px 34px 28px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--brand), #4c8fff);
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.header {
    text-align: center;
    margin-bottom: 28px;
}

.header h2 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.header p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--sub);
}

.form-group {
    margin-bottom: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa4b2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.input-field {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: #9aa4b2;
}

.input-field:hover {
    border-color: #c7d3e3;
}

.input-field:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(21, 106, 240, 0.10);
}

.btn-login {
    position: relative;
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #2f7df7);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 12px 24px rgba(21, 106, 240, 0.22);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(21, 106, 240, 0.28);
}

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

.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-login:focus {
    outline: none;
    box-shadow:
            0 0 0 4px rgba(21, 106, 240, 0.12),
            0 12px 24px rgba(21, 106, 240, 0.22);
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.92);
}

.footer {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid var(--line-soft);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link span {
    font-size: 14px;
    color: var(--sub);
}

.footer-link strong {
    font-size: 14px;
    color: var(--brand);
    font-weight: 700;
}

.footer-link:hover {
    background: var(--brand-soft);
    border-color: #d7e6ff;
    transform: translateY(-1px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width: 768px) {
    .login-page {
        padding: 80px 24px 40px;
    }

    .login-page.login-page--vcenter {
        padding: 20px 16px;
        min-height: 100dvh;
    }

    .login-container {
        max-width: 100%;
        padding: 30px 20px 22px;
        border-radius: 20px;
    }

    .header h2 {
        font-size: 28px;
    }

    .header p {
        font-size: 13px;
    }

    .input-field,
    .btn-login {
        height: 52px;
    }

    .footer-link {
        padding: 13px 14px;
    }
}

@media (max-width: 480px) {
    .login-page {
        align-items: center;
    }

    .login-container {
        padding: 26px 16px 18px;
        border-radius: 18px;
    }

    .header {
        margin-bottom: 22px;
    }

    .header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .brand-badge {
        font-size: 11px;
        padding: 7px 12px;
    }

    .input-field {
        font-size: 14px;
        border-radius: 12px;
    }

    .btn-login {
        border-radius: 12px;
        font-size: 14px;
    }

    .footer-link span,
    .footer-link strong {
        font-size: 13px;
    }
}