/* Login Page Styles v1.0 */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Zen+Dots&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
    --primary-color-start: #667eea;
    --primary-color-end: #764ba2;
    --text-color: #2d3748;
    --subtle-text-color: #718096;
    --card-bg-color: rgba(255, 255, 255, 0.85);
    --border-color: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--primary-color-start) 0%, var(--primary-color-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    max-width: 420px;
    width: 100%;
    background: var(--card-bg-color);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.app-logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
}

.app-logo span {
    font-family: 'Zen Dots', sans-serif;
    font-size: 2.2rem;
    color: var(--text-color);
    line-height: 1;
}

.form-label {
    font-weight: 600;
    color: #4a5568;
}

.form-control {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color-start);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.password-wrapper {
    position: relative;
}

#togglePassword {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.2s ease;
}

#togglePassword:hover {
    color: var(--text-color);
}

.login-btn {
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color-start) 0%, var(--primary-color-end) 100%);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
    }

    .app-logo span {
        font-size: 1.8rem;
    }
}