/* Islamic Auth Pages Styling */
/* تنسيق صفحات المصادقة الإسلامية */

:root {
    --islamic-primary: #2c5530;
    --islamic-secondary: #4a7c59;
    --islamic-accent: #d4af37;
    --islamic-light: #f8f9fa;
    --islamic-dark: #1a3a1d;
    --islamic-gradient: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    --islamic-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Main Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    background: var(--islamic-gradient);
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Islamic Pattern Background */
.islamic-pattern-bg {
    flex: 1;
    background: var(--islamic-pattern);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.islamic-pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(44, 85, 48, 0.2) 50%, 
        rgba(74, 124, 89, 0.1) 100%);
    animation: patternShift 20s ease-in-out infinite;
}

@keyframes patternShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-10px); }
    50% { transform: translateX(10px) translateY(10px); }
    75% { transform: translateX(-5px) translateY(5px); }
}

/* Islamic Geometric Pattern */
.geometric-pattern {
    position: relative;
    z-index: 1;
    width: 300px;
    height: 300px;
    opacity: 0.3;
}

.geometric-pattern svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Auth Form Container */
.auth-form-container {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

/* Form Content */
.auth-form-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form {
    width: 100%;
    max-width: 400px;
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    max-height: 80px;
    margin-bottom: 1rem;
}

.auth-logo h2 {
    color: var(--islamic-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.auth-logo p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--islamic-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--islamic-secondary);
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
}

/* Buttons */
.btn-islamic {
    background: var(--islamic-gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-islamic:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
    color: white;
}

.btn-link-islamic {
    color: var(--islamic-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link-islamic:hover {
    color: var(--islamic-primary);
    text-decoration: underline;
}

/* Loading Animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Footer Section */
.auth-footer {
    background: #f8f9fa;
    padding: 2rem;
    border-top: 1px solid #e9ecef;
}



/* Developer Info */
.developer-info {
    text-align: center;
}

.developer-info h6 {
    color: var(--islamic-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.developer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.developer-links a {
    color: var(--islamic-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.developer-links a:hover {
    color: var(--islamic-primary);
    text-decoration: underline;
}

.copyright {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        min-height: 100vh;
    }

    /* Hide Islamic pattern on mobile */
    .islamic-pattern-bg {
        display: none;
    }

    .auth-form-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .auth-form-content {
        flex: 1;
        padding: 1rem;
        display: flex;
        align-items: center;
    }

    .auth-form {
        width: 100%;
    }

    .auth-logo h2 {
        font-size: 1.5rem;
    }

    .auth-footer {
        padding: 1.5rem 1rem;
        margin-top: auto;
    }

    .developer-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .auth-form-content {
        padding: 1rem 0.5rem;
    }
    
    .auth-logo h2 {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(74, 124, 89, 0.1);
    color: var(--islamic-dark);
    border-left: 4px solid var(--islamic-secondary);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--islamic-dark);
    border-left: 4px solid var(--islamic-accent);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
