:root {
    --glass: rgba(255, 255, 255, 0.85);
    --primary: #0f172a;
    --accent: #2563eb;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden; /* Prevents bounce on mobile */
}

/* Grand Animated Background */
.login-wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Card */
.login-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 90%;
    max-width: 400px;
    padding: 45px 30px;
    border-radius: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

h1 {
    font-weight: 800;
    font-size: 32px;
    color: var(--primary);
    margin: 0;
    letter-spacing: -1.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin: 5px 0 35px 0;
}

/* Modern Inputs */
.input-group {
    position: relative;
    margin-bottom: 18px;
    text-align: left;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 18px;
}

input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Grand Buttons */
button {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    margin-top: 10px;
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid #e2e8f0;
    margin-top: 15px;
}

#toast {
    position: fixed;
    bottom: 30px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: none;
    z-index: 1000;
}