* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

/* Background SVG */
.bg-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-svg svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

/* Login Form */
.login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: block;
}

.logo h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.icon {
    width: 20px;
    height: 20px;
    fill: #667eea;
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.password-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.eye-icon {
    width: 22px;
    height: 22px;
    fill: #777;
    transition: fill 0.3s;
}

.toggle-password:hover .eye-icon {
    fill: #667eea;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-fingerprint {
    width: 100%;
    padding: 16px;
    background: white;
    color: #333;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-fingerprint svg {
    width: 22px;
    height: 22px;
    fill: #667eea;
}

.btn-fingerprint:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert.success {
    background: #efffef;
    color: #2a7;
    border: 1px solid #cfc;
}

/* Footer */
.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .login-form {
        padding: 25px;
        border-radius: 15px;
    }
    
    .logo-svg {
        width: 60px;
        height: 60px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .password-input input {
        padding: 14px 45px 14px 14px;
        font-size: 16px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .btn-login, .btn-fingerprint {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    animation: fadeIn 0.6s ease-out;
}

/* Change password specific */
.password-strength {
    margin-top: 8px;
    height: 5px;
    border-radius: 2px;
    background: #eee;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-weak { background-color: #ff4757; }
.strength-medium { background-color: #ffa502; }
.strength-strong { background-color: #2ed573; }

/* ---------------------- */
