:root {
    --background-start: #effaff;
    --background-end: #eef2ff;

    --card-background: rgba(255, 255, 255, 0.92);
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --mint: #2dd4bf;

    --text-main: #1e293b;
    --text-sub: #64748b;
    --input-border: #dbeafe;
    --input-background: #f8fbff;

    --shadow: 0 25px 70px rgba(59, 130, 246, 0.16);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 24px;

    color: var(--text-main);
    background:
            radial-gradient(
                    circle at 15% 20%,
                    rgba(45, 212, 191, 0.25),
                    transparent 28%
            ),
            radial-gradient(
                    circle at 85% 75%,
                    rgba(139, 92, 246, 0.18),
                    transparent 30%
            ),
            linear-gradient(
                    145deg,
                    var(--background-start),
                    var(--background-end)
            );

    font-family:
            Pretendard,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;
}

/* 배경 장식 */

body::before {
    position: absolute;
    top: -120px;
    right: -100px;

    width: 330px;
    height: 330px;

    background: linear-gradient(
            145deg,
            rgba(59, 130, 246, 0.24),
            rgba(45, 212, 191, 0.18)
    );
    border-radius: 50%;

    content: "";
}

body::after {
    position: absolute;
    bottom: -150px;
    left: -110px;

    width: 380px;
    height: 380px;

    background: linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.18),
            rgba(59, 130, 246, 0.18)
    );
    border-radius: 50%;

    content: "";
}

/* 로그인 카드 */

#signup_box {
    position: relative;
    z-index: 1;

    width: min(100%, 420px);
    padding: 46px 40px 42px;

    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

#signup_box > a {
    display: block;

    margin-bottom: 38px;

    text-align: center;
    text-decoration: none;
}

#signup_box h1 {
    display: inline-block;

    color: transparent;
    background: linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
    );
    background-clip: text;
    -webkit-background-clip: text;

    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.05em;

    transition:
            transform 0.2s ease,
            filter 0.2s ease;
}

#signup_box > a:hover h1 {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* 로그인 폼 */

#signupForm {
    width: 100%;
}

.login_box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login_box input {
    width: 100%;
    height: 54px;
    padding: 0 17px;

    color: var(--text-main);
    background: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: 13px;
    outline: none;

    font-size: 1rem;

    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.login_box input::placeholder {
    color: #94a3b8;
}

.login_box input:hover {
    background-color: #ffffff;
    border-color: #bfdbfe;
}

.login_box input:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

/* 브라우저 자동완성 */

.login_box input:-webkit-autofill,
.login_box input:-webkit-autofill:hover,
.login_box input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-main);

    box-shadow:
            0 0 0 1000px var(--input-background) inset;

    transition: background-color 9999s ease-in-out 0s;
}

/* 로그인 버튼 */

#signupForm button {
    width: 100%;
    height: 55px;
    margin-top: 24px;

    color: #ffffff;
    background: linear-gradient(
            135deg,
            var(--primary),
            #60a5fa
    );
    border: none;
    border-radius: 13px;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.25);

    font-size: 1.05rem;
    font-weight: 800;

    cursor: pointer;

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            filter 0.2s ease;
}

#signupForm button:hover {
    box-shadow: 0 16px 35px rgba(59, 130, 246, 0.32);
    filter: brightness(1.05);
    transform: translateY(-3px);
}

#signupForm button:active {
    box-shadow: 0 7px 18px rgba(59, 130, 246, 0.22);
    transform: translateY(0);
}

#signupForm button:focus-visible,
#signup_box a:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 4px;
}

/* 모바일 */

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    #signup_box {
        padding: 38px 24px 34px;
        border-radius: 21px;
    }

    #signup_box h1 {
        font-size: 1.85rem;
    }

    .login_box input {
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}