/* ===== Background Futuristic Neon Blue ===== */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: radial-gradient(circle at top, #0a1f36, #000814 70%);
    color: #dbeafe;
    overflow: hidden;
}

/* ===== Wrapper ===== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    animation: fadeIn 1s ease;
}

/* ===== Card ===== */
.login-card {
    background: rgba(0, 25, 50, 0.7);
    padding: 30px 40px;
    border-radius: 20px;
    backdrop-filter: blur(18px);
    box-shadow: 0 0 40px rgba(0, 200, 255, 0.25);
    width: 320px;
    text-align: center;
    animation: popIn 0.8s ease;
}

/* Logo */
.logo {
    width: 80px;
    margin-bottom: 18px;
}

/* Title */
.title {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    margin-bottom: 14px;
}

.input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.35);
    color: #e0ecff;
    border-radius: 10px;
    outline: none;
    transition: 0.25s;
    box-sizing: border-box;
}

.input:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
}

/* Show/Hide Password */
.show-pass {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #00f0ff;
    font-size: 16px;
    user-select: none;
}

/* ===== Button Futuristic ===== */
.btn-login {
    width: 50%;
    padding: 10px;
    margin: 15px auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #00f0ff, #008cff);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transition: 0.3s ease;
    position: relative;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

.btn-icon {
    font-size: 18px;
    opacity: 0;
    transform: translateX(-5px);
    transition: 0.3s ease;
}

.btn-login:hover .btn-icon {
    opacity: 1;
    transform: translateX(4px);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d4ed8;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 119, 255, 0.5);
    transition: 0.5s ease;
    font-size: 14px;
    z-index: 9999;
}

.toast.show {
    top: 20px;
}

.toast.error {
    background: #b91c1c;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* ===== Spinner ===== */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(0, 255, 255, 0.2);
    border-top-color: #00f0ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hidden { display: none; }

/* ===== Animations ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.4); } 50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.9); } 100% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.4); } }
