body {
    margin: 0;
    padding: 0;
    background:
        linear-gradient(rgba(255, 253, 249, 0.82), rgba(255, 248, 239, 0.9)),
        url('/images/register/register_main.png') center/cover fixed no-repeat;
    color: var(--text, #3f3530);
    font-family: var(--font, 'Pretendard', 'Noto Sans KR', sans-serif);
}

.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 4rem 1rem;
}

.register-box {
    background-color: rgba(255, 255, 255, 0.96);
    width: 100%;
    max-width: 460px;
    padding: 2.5rem 2.25rem;
    border: 1px solid var(--border, #eedfd5);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(63, 53, 48, 0.12);
}

.register-box h2 {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary, #f27a5e);
    letter-spacing: 0;
}

.register-box > p {
    margin: 0 0 1.75rem;
    text-align: center;
    color: var(--text-muted, #7b706a);
    font-size: 0.95rem;
}

.register-box a {
    color: var(--primary, #f27a5e);
    font-weight: 700;
}

.register-box form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.register-box label {
    margin-top: 0.55rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text, #3f3530);
}

.register-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.82rem 0.9rem;
    margin-top: 0.25rem;
    border: 1px solid var(--border-mid, #e2cfc3);
    border-radius: 6px;
    background: #fff;
    color: var(--text, #3f3530);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-box input:focus {
    border-color: var(--primary, #f27a5e);
    box-shadow: 0 0 0 3px rgba(242, 122, 94, 0.16);
    outline: none;
}

.register-box button {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    background-color: var(--primary, #f27a5e);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.register-box button:hover {
    background-color: var(--primary-dark, #d95f46);
    transform: translateY(-1px);
}

.register-box button[disabled] {
    transform: none;
}

#submitBtn {
    margin-top: 1.25rem;
    min-height: 48px;
    font-size: 1rem;
}

.register-box input.valid {
    border: 2px solid #43b883 !important;
    background-color: #fbfffd;
}

.register-box input.invalid {
    border: 2px solid #e74c3c !important;
    background-color: #fffafa;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 0.15rem;
    text-align: left;
    transition: opacity 0.2s ease;
}

@media screen and (max-width: 1024px) {
    .register-box {
        max-width: 460px;
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .register-container {
        padding: 2rem 1rem;
    }

    .register-box {
        max-width: 95%;
        padding: 1.5rem;
    }

    .register-box h2 {
        font-size: 1.35rem;
    }

    .register-box input {
        font-size: 0.95rem;
    }

    .register-box button {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .register-container {
        min-height: auto;
        padding: 1.25rem 1rem 2rem;
    }

    .register-box {
        padding: 1.25rem;
    }

    .register-box h2 {
        font-size: 1.2rem;
    }

    .register-box label {
        font-size: 0.85rem;
    }

    .register-box input {
        padding: 0.65rem;
        font-size: 0.9rem;
    }

    .register-box button {
        padding: 0.65rem;
        font-size: 0.9rem;
    }

    .error-message {
        font-size: 11px;
    }
}
