:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --input-bg: rgba(0, 0, 0, 0.2);
}
body {
    margin: 0; padding: 0;
    font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;
    height: 100vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: radial-gradient(circle at center, #1a1a2e 0%, #16213e 100%);
}
.circles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; margin: 0; padding: 0; }
.circles li { position: absolute; display: block; list-style: none; width: 20px; height: 20px; background: rgba(255, 255, 255, 0.05); animation: animate 25s linear infinite; bottom: -150px; border-radius: 50%; }
.circles li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3){ left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4){ left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5){ left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
@keyframes animate {
    0%{ transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100%{ transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}
.glass-card {
    position: relative; z-index: 1;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    border-radius: 20px; border: 1px solid var(--glass-border);
    padding: 3rem; width: 100%; max-width: 400px; color: white;
}
.form-control {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important; padding: 12px 15px; border-radius: 10px; font-size: 0.95rem;
}
.form-control:focus {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: #e73c7e !important; box-shadow: none !important; color: #fff !important;
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.4) !important; }
.input-group-text {
    background-color: rgba(0, 0, 0, 0.3) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important; color: rgba(255, 255, 255, 0.7) !important; border-radius: 0 10px 10px 0 !important;
}
.input-group .form-control { border-radius: 10px 0 0 10px !important; }
.btn-login {
    width: 100%; padding: 12px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none; border-radius: 10px; font-weight: 600; font-size: 1rem; color: white; margin-top: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.2s;
}
.btn-login:hover { transform: translateY(-2px); color: white; box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.logo-area { text-align: center; margin-bottom: 30px; }
.logo-area i { font-size: 45px; background: -webkit-linear-gradient(#e73c7e, #23a6d5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.form-label { color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; margin-bottom: 5px; }
.copyright { position: fixed; bottom: 15px; color: rgba(255, 255, 255, 0.2); font-size: 12px; }
.alert-msg {
    background: rgba(255, 85, 85, 0.15); color: #ff8585;
    padding: 10px; border-radius: 10px; border: 1px solid rgba(255, 85, 85, 0.2);
    margin-bottom: 20px; text-align: center; font-size: 0.85rem; display: none;
}
.mode-toggle {
    text-align: center; margin-top: 15px; color: #a29bfe; font-size: 0.85rem; cursor: pointer; text-decoration: underline;
}