:root {
    --primary: #435ebe;
    --primary-dark: #3950a2;
    --primary-light: #9bace9;
    --secondary: #00cec9;
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
    --dark: #2d3436;
    --light: #f8f9fa;
    --gray: #636e72;
    --gray-light: #dfe6e9;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.05) 0%, rgba(108, 92, 231, 0.05) 90%),
        radial-gradient(circle at 90% 80%, rgba(0, 206, 201, 0.05) 0%, rgba(0, 206, 201, 0.05) 90%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    margin: 1rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-header p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.card-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .icon {
    position: absolute;
    left: 12px;
    color: var(--gray);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.9375rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
}

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

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me input {
    margin-right: 0.5rem;
    accent-color: var(--primary);
}

.remember-me label {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--gray);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn i {
    margin-right: 8px;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

.text-muted {
    color: var(--gray);
    font-size: 0.875rem;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}