@font-face {
    font-family: Pretendard;
    font-weight: 900;
    font-display: swap;
    src: local('Pretendard Black'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Black.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff/Pretendard-Black.woff) format('woff');
}
@font-face {
    font-family: Pretendard;
    font-weight: 800;
    font-display: swap;
    src: local('Pretendard ExtraBold'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-ExtraBold.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff/Pretendard-ExtraBold.woff) format('woff');
}
@font-face {
    font-family: Pretendard;
    font-weight: 700;
    font-display: swap;
    src: local('Pretendard Bold'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Bold.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff/Pretendard-Bold.woff) format('woff');
}
@font-face {
    font-family: Pretendard;
    font-weight: 600;
    font-display: swap;
    src: local('Pretendard SemiBold'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-SemiBold.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff/Pretendard-SemiBold.woff) format('woff');
}
@font-face {
    font-family: Pretendard;
    font-weight: 500;
    font-display: swap;
    src: local('Pretendard Medium'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Medium.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff/Pretendard-Medium.woff) format('woff');
}
@font-face {
    font-family: Pretendard;
    font-weight: 400;
    font-display: swap;
    src: local('Pretendard Regular'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Regular.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff/Pretendard-Regular.woff) format('woff');
}
@font-face {
    font-family: Pretendard;
    font-weight: 300;
    font-display: swap;
    src: local('Pretendard Light'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Light.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff/Pretendard-Light.woff) format('woff');
}
@font-face {
    font-family: Pretendard;
    font-weight: 200;
    font-display: swap;
    src: local('Pretendard ExtraLight'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-ExtraLight.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff/Pretendard-ExtraLight.woff) format('woff');
}
@font-face {
    font-family: Pretendard;
    font-weight: 100;
    font-display: swap;
    src: local('Pretendard Thin'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Thin.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff/Pretendard-Thin.woff) format('woff');
}


:root {
    --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --primary: #3274f6;
    --primary-light: #5490ff;


    /* Light mode */
    --bg-start: #eef4ff;
    --bg-end: #f8faff;
    --text: #1a1a1a;
    --text-light: #555;
    --input-bg: rgba(240, 244, 255, 0.5); 
    --input-focus-bg: rgba(255, 255, 255, 0.9);
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.8);
    --red: #f44336;
    --success: #10b981;
    --border-focus: var(--primary);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-start: #0f172a;
        --bg-end: #1e293b;
        --glass: rgba(255, 255, 255, 0.09);
        --glass-border: rgba(255, 255, 255, 0.12);
        --text: #f1f5f9;
        --text-light: #94a3b8;
        --input-bg: rgba(255, 255, 255, 0.05);
        --input-focus-bg: rgba(255, 255, 255, 0.1);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(50, 116, 246, 0.15), transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(100, 149, 255, 0.12), transparent 60%);
    filter: blur(90px);
    z-index: -1;
}



.container {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 56px 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.logo { text-align: center; margin-bottom: 48px; }
.logo img { height: 48px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1)); }

.form-group { position: relative; margin-bottom: 24px; }
.input-wrapper { position: relative; }

.input-field {
    width: 100%;
    padding: 24px 20px 10px;
    font-size: 17px;
    font-weight: 500;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-bottom: 2px solid rgba(100, 100, 100, 0.1);
    border-radius: 16px 16px 0 0;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field:focus {
    outline: none;
    background: var(--input-focus-bg);
    border-bottom-color: var(--primary);
}

.floating-label {
    position: absolute;
    left: 20px;
    top: 22px;
    font-size: 17px;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.input-field:focus ~ .floating-label,
.input-field:not(:placeholder-shown) ~ .floating-label,
.input-field:-webkit-autofill ~ .floating-label,
.floating-label.active {
    transform: translateY(-14px) scale(0.78);
    color: var(--primary);
    font-weight: 600;
}

/* 브라우저 자동완성 배경색 오버라이드 */
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset;
    -webkit-text-fill-color: var(--text);
    transition: background-color 5000s ease-in-out 0s;
}

.btn-pw-toggle {
    position: absolute;
    right: 12px;
    top: 14px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 10;
}
.btn-pw-toggle:hover { color: var(--primary); }
.btn-pw-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.input-field.has-icon { padding-right: 50px; }

.login-options {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 4px;
}
.custom-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-light);
    user-select: none;
}
.custom-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(50, 116, 246, 0.3);
}
.btn-submit::before {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 150%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(50, 116, 246, 0.4); }
.btn-submit:hover::before { left: 150%; }

.links {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
}
.links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}
.links a:hover { color: var(--text); text-decoration: underline; }

.divider { width: 1px; height: 12px; background: rgba(0,0,0,0.15); }

.link-signup {
    color: var(--primary) !important;
    font-weight: 700;
    margin-left: 4px;
}

.notice {
    color: #ef4444;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
}

@media (max-width: 480px) {
    body {
        padding: 0;
        background: var(--glass);
    }
    body::before {
        display: none;
    }
    .container {
        min-height: 100vh;
        max-width: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 48px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.sub-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.5;
}

#pageTitle {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}