@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #0f1117;
    min-height: 100vh;
    overflow: hidden;
}

.modern-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 70% 30%, #00bfff55 0%, transparent 70%),
                radial-gradient(ellipse at 20% 80%, #00bfff33 0%, transparent 80%);
    animation: modern-bgfloat 10s ease-in-out infinite alternate;
    filter: blur(60px) brightness(0.7);
}

@keyframes modern-bgfloat {
    0% { background-position: 70% 30%, 20% 80%; }
    100% { background-position: 60% 40%, 30% 70%; }
}

.modern-login-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.modern-login-card {
    background: rgba(20, 30, 40, 0.7);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 #00bfff44, 0 0 0 2px #00bfff33;
    padding: 48px 36px 36px 36px;
    min-width: 340px;
    width: 100%;
    max-width: 370px;
    border: 1.5px solid #00bfff;
    backdrop-filter: blur(18px) saturate(120%);
    animation: modern-cardfade 1.2s cubic-bezier(.39,.575,.565,1) both;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

@keyframes modern-cardfade {
    0% { opacity: 0; transform: translateY(40px) scale(0.97);}
    100% { opacity: 1; transform: translateY(0) scale(1);}
}

.modern-login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.modern-glow-icon svg {
    filter: drop-shadow(0 0 16px #00bfff99);
}

.modern-login-header h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.modern-login-error {
    background: rgba(255,0,0,0.10);
    color: #ff4444;
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 8px;
}

.modern-input-group {
    position: relative;
    margin-bottom: 8px;
}

.modern-input-group input {
    width: 100%;
    padding: 16px 14px 16px 14px;
    background: rgba(24,28,36,0.95);
    border: 2px solid #00bfff;
    border-radius: 10px;
    color: #fff;
    font-size: 1.08rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px #00bfff11;
}

.modern-input-group input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 2px #00bfff55;
}

.modern-input-group label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.08rem;
    pointer-events: none;
    transition: 0.2s;
    background: transparent;
}

.modern-input-group input:focus + label,
.modern-input-group input:not(:placeholder-shown):not(:focus) + label {
    top: -13px;
    left: 10px;
    font-size: 0.88rem;
    color: #00bfff;
    background: #181c24;
    padding: 0 6px;
    border-radius: 6px;
}

.modern-login-btn {
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(90deg, #00bfff 0%, #0099cc 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 28px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 2px 16px #00bfff33;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.modern-login-btn:hover {
    background: linear-gradient(90deg, #0099cc 0%, #00bfff 100%);
    color: #fff;
    box-shadow: 0 4px 32px #00bfff55;
}

.modern-register-btn {
    width: 100%;
    display: block;
    margin-top: 8px;
    padding: 13px 0;
    background: transparent;
    color: #00bfff;
    border: 2px solid #00bfff;
    border-radius: 28px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 12px #00bfff11;
}

.modern-register-btn:hover {
    background: #00bfff;
    color: #fff;
    border-color: #0099cc;
    box-shadow: 0 4px 24px #00bfff55;
}

.modern-login-success {
    background: rgba(0,191,100,0.10);
    color: #00e676;
    border: 1px solid #00e676;
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 8px;
}

@media (max-width: 500px) {
    .modern-login-card {
        min-width: 90vw;
        padding: 32px 8vw 24px 8vw;
    }
}