body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top, rgba(123, 63, 242, 0.10), transparent 28%),
        #f6f7fb;
    color: #1f2937;
}

.auth-wrap {
    max-width: 520px;
    margin: 56px auto 88px;
    padding: 0 16px;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px;
}

.auth-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #efe7ff;
    color: #6a35d4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-card h2 {
    margin: 0 0 10px;
    font-size: 32px;
    color: #111827;
}

.auth-description {
    margin: 0 0 28px;
    color: #667085;
    line-height: 1.6;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-alert p {
    margin: 0;
}

.auth-alert.error {
    background: #fff1f2;
    color: #b42318;
}

.auth-alert.success {
    background: #eff6ff;
    color: #1d4ed8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #344054;
}

.form-group input {
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group select {
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #7b3ff2;
}

.form-group select:focus {
    outline: none;
    border-color: #7b3ff2;
}

.phone-field {
    display: grid;
    grid-template-columns: 84px 10px 88px 10px 88px;
    align-items: center;
    gap: 8px;
    justify-content: start;
}

.phone-part {
    width: 100%;
    text-align: left;
}

.phone-prefix {
    text-align: left;
}

.phone-separator {
    text-align: center;
    color: #98a2b3;
    font-weight: 700;
}

.address-search-row {
    display: grid;
    grid-template-columns: 120px auto;
    gap: 10px;
}

.address-search-button {
    height: 48px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #f8f5ff;
    color: #6a35d4;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.address-search-button:hover {
    border-color: #bca8f5;
    background: #f1ebff;
}

.password-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.password-checklist__item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
}

.password-checklist__item::before {
    content: "•";
    color: #cbd5e1;
    font-size: 14px;
}

.password-checklist__item.is-valid {
    color: #15803d;
}

.password-checklist__item.is-valid::before {
    content: "✓";
    color: #15803d;
    font-weight: 700;
}

.field-error {
    margin: 0;
    min-height: 20px;
    font-size: 13px;
    color: #c62828;
    visibility: hidden;
}

.field-error.is-visible {
    visibility: visible;
}

.field-error.is-error {
    color: #c62828;
}

.field-error.is-success {
    color: #15803d;
}

.form-group input.is-invalid,
.form-group select.is-invalid {
    border-color: #c62828;
}

.phone-field.is-invalid {
    padding: 8px;
    margin: -8px;
    border-radius: 14px;
    background: rgba(198, 40, 40, 0.05);
}

.auth-submit {
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #7b3ff2, #5f2ccf);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 18px;
    color: #98a2b3;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e7ec;
}

.social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid #d9dee7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-login:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.social-login__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    flex-shrink: 0;
}

.social-login__icon {
    width: 18px;
    height: 18px;
}

.social-login__text {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #344054;
}

.social-login--kakao {
    margin-top: 12px;
    border-color: #e5c74d;
    background: linear-gradient(180deg, #fee500 0%, #f9df02 100%);
    color: #191919;
}

.social-login--kakao:hover {
    background: linear-gradient(180deg, #fee500 0%, #f2d700 100%);
    border-color: #d9ba37;
}

.social-login__mark--kakao {
    border-color: #e8c700;
    background: #fee500;
}

.social-login__icon--kakao {
    width: 20px;
    height: 20px;
    color: #191919;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    color: #667085;
    font-size: 14px;
}

.auth-links a {
    color: #6a35d4;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .auth-card h2 {
        font-size: 28px;
    }

    .phone-field {
        grid-template-columns: 1fr;
    }

    .phone-separator {
        display: none;
    }

    .address-search-row {
        grid-template-columns: 1fr;
    }

    .password-checklist {
        grid-template-columns: 1fr;
    }
}
