*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #4361ee;
    --border: rgba(255, 255, 255, 0.07);
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-mid: rgba(255, 255, 255, 0.7);
}

html {
    background-color: #0d0d0e;
}

.login-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 700px;
    pointer-events: none;
    background: radial-gradient(ellipse 900px 500px at 50% 0%, rgb(67 97 238), rgba(13, 13, 14, 0) 70%);
    z-index: 0;
}

.login-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: white;
    margin: 0;
    min-height: 100vh;
    background: #0d0d0e;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-size: 48px 48px;
    background-position: center top;
}

.login-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 700px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, #0d0d0e 100%);
    z-index: 0;
}


@keyframes shimmerSoft {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s;
}

.nav-pill-gradient {
    background: linear-gradient(90deg, #f0e6ff, #e6f0ff, #ffe6f0, #e6ffe6, #fff5e6, #f0e6ff);
    background-size: 300% auto;
    animation: shimmerSoft 8s ease-in-out infinite;
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(240, 230, 255, 0.2);
    border: none;
}

.nav-pill-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(240, 230, 255, 0.35);
}

#userInfo {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(67, 97, 238, 0.12);
    border: 1px solid rgba(67, 97, 238, 0.2);
    padding: 6px 14px 6px 10px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
}

#userInfo:hover {
    background: rgba(67, 97, 238, 0.2);
}

#userNameDisplay {
    font-size: 0.875rem;
    font-weight: 600;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.07);
    border: none;
    color: var(--text-mid);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.icon-btn .material-symbols-outlined {
    font-size: 16px;
    margin: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 420px;
    padding: 50px 20px 60px;
}

.card {
    padding: 36px 32px;
}

.login-header {
    margin: 5px 0 70px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.login-header .material-symbols-outlined {
    font-size: 44px;
    margin: 0;
}

.login-header span:last-child {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    color: white;
}

.login-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 15px;
    margin: 0 0 28px 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.input-group input:focus {
    border-color: #4361ee;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.15);
}

.turnstile-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 4px 0;
}

.login-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 300;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-top: 8px;
}

.login-btn:hover {
    background: #6d86ff;
    transform: scale(1.02);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

.register-link a {
    color: #4361ee;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link a:hover {
    color: #5a7ef4;
}

.message {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    display: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.message.error {
    color: #f87171;
    display: block;
}

.message.success {
    color: #4ade80;
    display: block;
}

@media (max-width: 640px) {
    .wrap {
        padding: 80px 16px 40px;
    }
    .card {
        padding: 28px 20px;
    }
    nav {
        padding: 0 16px;
    }
    .logo {
        font-size: 0.85rem;
    }
}

.main-title {
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
}