:root {
    --primary: #4f46e5;
    --secondary: #06b6d4;
    --bg-light: rgba(255, 255, 255, 0.25);
    --bg-dark: rgba(0, 0, 0, 0.25);
    --text-dark: #222;
    --text-light: #f1f1f1;
}

/* ✅ Base Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

body.dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--text-light);
}

/* ✅ Card */
.login-card {
    backdrop-filter: blur(15px);
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    transition: all 0.5s ease;
}

body.dark .login-card {
    background: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* ✅ Heading */
h3 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
}

body.dark h3 {
    color: var(--text-light);
}

/* ✅ Input Group with Icons */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #555;
    font-size: 18px;
    z-index: 10;
}

.input-group .form-control {
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 15px 12px 45px;
    font-size: 15px;
    box-shadow: inset 0 0 0 2px transparent;
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 2px var(--secondary), 0 0 12px rgba(16, 185, 129, 0.4);
    outline: none;
}

body.dark .form-control {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

body.dark .input-group .input-icon {
    color: #ccc;
}

/* ✅ Button */
.btn-primary {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

/* ✅ Toggle Mode */
.toggle-mode {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: #fff;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-mode:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ✅ Footer */
.footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #eee;
}

.footer-text a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.footer-text a:hover {
    text-decoration: underline;
}
