/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #F3F2F7 0%, #EEEAFC 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(90, 62, 138, 0.15);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8F64C0, #5a3e8a, #83D98B);
}

.logo-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-section img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5a3e8a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    color: #6b6f7a;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #5a3e8a;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: #8F64C0;
    font-size: 1.1rem;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2d3a4b;
}

.form-input:focus {
    outline: none;
    border-color: #8F64C0;
    background: white;
    box-shadow: 0 0 0 4px rgba(143, 100, 192, 0.1);
}

.form-input::placeholder {
    color: #8da1b2;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b6f7a;
    position: relative;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8F64C0;
    cursor: pointer;
}

.forgot-password {
    color: #8F64C0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a3e8a;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8F64C0 0%, #5a3e8a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(143, 100, 192, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    font-size: 1.1rem;
}

.login-links {
    text-align: center;
    color: #6b6f7a;
}

.login-links a {
    color: #8F64C0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #5a3e8a;
}

.login-links p {
    margin-bottom: 0.75rem;
}

.error-message {
    background: #fee;
    color: #c53030;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #c53030;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.error-message i {
    font-size: 1.1rem;
    color: #c53030;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .login-container {
        max-width: 400px;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 2rem;
        margin: 1rem;
        max-width: 400px;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem 0.875rem 2.75rem;
    }
    
    .input-with-icon i {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .logo-section img {
        width: 100px;
    }
    
    .form-options {
        gap: 0.5rem;
    }
}
