/* Login Page Enhancements - قيمّ */

/* Alert Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-animated {
    animation: slideDown 0.5s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.alert-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.alert-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.alert-error.alert-animated {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--text-primary);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Form Options (Remember Me + Forgot Password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.forgot-password {
    color: #3CCB8A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #2DB57D;
    text-decoration: underline;
}

/* Loading State */
.btn-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

.spinner circle {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .password-toggle {
        left: 40px;
    }
}

/* Form Hint */
.form-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* Alert Success */
.alert-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

