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

:root {
    --primary-color: #7c4dff;
    --secondary-color: #00e5ff;
    --bg-dark: #0a0a1a;
    --text-light: #f5f5f7;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Futuristic Animated Background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a3a 0%, #0a0a1a 100%);
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    filter: blur(150px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: move 20s infinite alternate-reverse;
}

.blob-2 {
    background: var(--secondary-color);
    width: 600px;
    height: 600px;
    right: -100px;
    top: -100px;
    opacity: 0.2;
    animation: move 25s infinite alternate;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.2); }
}

/* Glassmorphism Card */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-section {
    text-align: center;
    margin-bottom: 40px;
}

.brand-section img {
    max-width: 160px;
    filter: drop-shadow(0 0 10px rgba(124, 77, 255, 0.5));
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(124, 77, 255, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Custom Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.checkbox-container input {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: 0.3s;
}

.forgot-link:hover {
    text-shadow: 0 0 8px var(--secondary-color);
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), #512da8);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(124, 77, 255, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(124, 77, 255, 0.6);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(0);
}

/* Error States */
.error-msg {
    color: #ff4d4d;
    font-size: 0.75rem;
    margin-top: 6px;
    display: block;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 20px;
    }
}
