:root {
    --primary: #246bfd;
    --primary-light: rgba(36, 107, 253, 0.2);
    --secondary: #6e40ff;
    --dark: #040712;
    --card-bg: rgba(14, 22, 40, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #94a3b8;
    --error: #ff4b4b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    padding: 20px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

/* Background Blobs */
.bg-decoration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.blob-1 {
    background: var(--primary);
    top: -300px;
    left: -200px;
    animation: blobMove 15s infinite alternate;
}

.blob-2 {
    background: var(--secondary);
    top: 100px;
    left: 100px;
    animation: blobMove 18s infinite alternate-reverse;
}

@keyframes blobMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

/* Card Styles */
.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: cardAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.card-header {
    text-align: center;
    margin-bottom: 35px;
}

.brand-logo img {
    height: 38px;
    margin-bottom: 15px;
}

h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-dim);
    font-size: 14px;
}

/* Inputs */
.input-group {
    margin-bottom: 22px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    margin-left: 4px;
}

.forgot-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

.input-wrapper i:not(.toggle-password) {
    position: absolute;
    left: 16px;
    color: var(--text-dim);
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 46px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 16px;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(36, 107, 253, 0.25);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(36, 107, 253, 0.35);
}

.submit-btn:active {
    transform: scale(0.98);
}

.register-link {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-dim);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

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