:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #4cc9f0;
    --danger: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/login-bg.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 220px;
    height: auto;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.remember-me label {
    color: var(--gray);
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.download-link {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(to right, rgba(76, 201, 240, 0.1), rgba(114, 9, 183, 0.1));
    border-radius: 8px;
    margin-top: 1.5rem;
}

.download-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.download-link a:hover {
    color: var(--secondary);
}

.download-link i {
    font-size: 1.2rem;
}

.error {
    background: linear-gradient(to right, rgba(247, 37, 133, 0.1), rgba(220, 53, 69, 0.1));
    color: var(--danger);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--danger);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error i {
    font-size: 1.2rem;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray);
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    body {
        padding: 1rem;
    }
    
    .login-box {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}