:root {
    --bg: #ffffff;
    --card: #ffffff;
    --text: #111827;
    --sub: #6b7280;
    --border: #e5e7eb;
    --focus: #4f7cff;
    --primary: #4f7cff;
    --primary-hover: #3f6fff;
    --shadow: 0 18px 40px rgba(0, 0, 0, .08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.wrap {
    width: min(520px, 100%);
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 34px 22px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

h1 {
    margin: 0 0 22px;
    text-align: center;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}

.input::placeholder {
    color: #9ca3af;
}

.input:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, .18);
}

.row {
    display: flex;
    gap: 10px;
}

.row>.field {
    flex: 1;
}

.hint {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--sub);
}

.btn {
    margin-top: 6px;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .05s, background .15s;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn:active {
    transform: translateY(1px);
}

.bottom {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(229, 231, 235, .7);
    text-align: center;
    color: var(--sub);
    font-size: 13px;
}

.bottom a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
}

.bottom a:hover {
    text-decoration: underline;
}

.divider {
    margin: 0 8px;
    color: #d1d5db;
    font-weight: 400;
}

/* 모바일에서 패딩 살짝 줄이기 */
@media (max-width: 420px) {
    .card {
        padding: 28px 18px 18px;
    }

    h1 {
        font-size: 24px;
    }
}