/* static/css/login.css */

body.login-page {
    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(0, 122, 255, 0.24),
            transparent 32%
        ),
        radial-gradient(
            circle at 82% 28%,
            rgba(175, 82, 222, 0.2),
            transparent 34%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(52, 199, 89, 0.13),
            transparent 36%
        ),
        linear-gradient(135deg, #eef2f8, #e8edf5);

    padding-top: 0 !important;
    padding-bottom: 0;
    overflow-x: hidden;
}

/* 로그인 화면에서는 하단 모바일 nav 숨김 */

body.login-page .mobile-bottom-nav {
    display: none !important;
}

body.login-page .app-main {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 !important;
}

body.login-page .app-container {
    min-height: 100vh;
    min-height: 100dvh;

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

    padding-top: 0;
    padding-bottom: 0;
}

/* Wrapper */

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card */

.login-card {
    width: 100%;
    max-width: 420px;

    padding: 42px 34px;

    position: relative;
    overflow: hidden;

    border-radius: 34px;

    background: rgba(255, 255, 255, 0.62);

    backdrop-filter: blur(34px) saturate(185%);
    -webkit-backdrop-filter: blur(34px) saturate(185%);

    border: 1px solid rgba(255, 255, 255, 0.72);

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.82);
}

.login-card::before {
    content: "";

    position: absolute;
    inset: 0 0 auto 0;

    height: 5px;

    background: linear-gradient(
        90deg,
        #007aff,
        #af52de,
        #34c759
    );

    pointer-events: none;
}

.login-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.72),
        rgba(255, 255, 255, 0.18)
    );

    pointer-events: none;
}

.login-card > * {
    position: relative;
    z-index: 1;
}

/* Header */

.login-header {
    text-align: center;
    margin-bottom: 34px;
}

.login-logo {
    width: 78px;
    height: 78px;

    margin: 0 auto 18px;

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

    font-size: 40px;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.78);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        0 12px 30px rgba(15, 23, 42, 0.1);
}

.login-title {
    margin-bottom: 8px;

    font-size: 30px;
    font-weight: 900;

    letter-spacing: 0;

    color: #0f172a;
}

.login-subtitle {
    margin: 0;

    font-size: 15px;

    color: rgba(51, 65, 85, 0.72);
}

/* Inputs */

.login-card .form-label {
    display: block;
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 800;

    color: rgba(51, 65, 85, 0.78);
}

.login-card input,
.login-card .form-control {
    display: block;
    width: 100%;
    height: 56px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.78);

    border: 1px solid rgba(203, 213, 225, 0.72);

    color: #0f172a;

    font-size: 16px;
    font-weight: 700;
    text-align: center;

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.82),
        0 8px 20px rgba(15, 23, 42, 0.05);
}

.login-card input::placeholder,
.login-card .form-control::placeholder {
    color: #94a3b8;
    text-align: center;
}

.login-card input:focus,
.login-card .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.96);

    border-color: rgba(13, 110, 253, 0.64);

    box-shadow:
        0 0 0 5px rgba(13, 110, 253, 0.16),
        0 12px 28px rgba(15, 23, 42, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Button */

.login-btn {
    width: 100%;
    height: 56px;

    border: none;

    border-radius: 18px;

    color: white;

    font-size: 17px;
    font-weight: 900;

    background: linear-gradient(
        180deg,
        #2997ff,
        #0d6efd
    );

    box-shadow:
        0 14px 30px rgba(13, 110, 253, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);

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

.login-btn:hover {
    background: linear-gradient(
        180deg,
        #1f8cff,
        #0b5ed7
    );

    box-shadow:
        0 18px 36px rgba(13, 110, 253, 0.34),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.login-btn:active {
    transform: scale(0.985);
}

/* Mobile */

@media (max-width: 35.5rem) {
    body.login-page .app-main {
        min-height: 100vh;
        min-height: 100dvh;
    }

    body.login-page .app-container {
        min-height: 100vh;
        min-height: 100dvh;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .login-card {
        max-width: 100%;
        padding: 34px 24px;
        border-radius: 30px;
    }

    .login-header {
        margin-bottom: 28px;
    }

    .login-card input,
    .login-card .form-control {
        height: 48px;
        border-radius: 16px;
        font-size: 16px;
    }

    .login-btn {
        height: 50px;
        border-radius: 16px;
        font-size: 16px;
    }

    .login-title {
        font-size: 26px;
    }

    .login-logo {
        width: 72px;
        height: 72px;
        font-size: 36px;
    }
}
