/* ملف ستايل صفحة المصادقة - موقع زمايل */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-color-site) 0%, var(--light-color-site-hover) 100%);
    padding: 20px;
}

.auth-card {
    background: var(--card-background-color);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    min-height: 600px;
}

.auth-header {
    background: linear-gradient(135deg, var(--light-color-site) 0%, var(--light-color-site-hover) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h1 {
    font-family: 'Lalezar', cursive;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.auth-tabs {
    display: flex;
    background: var(--background-content);
}

.auth-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: var(--color-body);
    font-weight: 600;
    font-size: 1.1rem;
}

.auth-tab.active {
    background: var(--light-color-site);
    color: white;
}

.auth-tab:hover:not(.active) {
    background: rgba(44, 178, 117, 0.1);
}

.auth-content {
    padding: 40px;
    min-height: 500px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--color-body);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid var(--input-border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    background: var(--control-background-color);
    color: var(--color-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--light-color-site);
    box-shadow: 0 0 0 0.2rem rgba(44, 178, 117, 0.25);
    outline: none;
}

.form-select {
    border: 2px solid var(--input-border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    background: var(--control-background-color);
    color: var(--color-body);
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--light-color-site);
    box-shadow: 0 0 0 0.2rem rgba(44, 178, 117, 0.25);
    outline: none;
}

.btn-auth {
    background: var(--light-color-site);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-auth:hover {
    background: var(--light-color-site-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 178, 117, 0.3);
}

.btn-auth:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background: rgba(44, 178, 117, 0.1);
    color: var(--light-color-site);
    border-left: 4px solid var(--light-color-site);
}

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

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.password-toggle {
    position: relative;
}

.password-toggle .form-control {
    padding-right: 50px;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-body);
    cursor: pointer;
    font-size: 1.2rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    height: 80px;
    width: auto;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-content {
        padding: 20px;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .auth-card {
        min-height: auto;
    }
    
    .auth-container {
        padding: 10px;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1200px) {
    .auth-card {
        max-width: 1000px;
    }
    
    .auth-content {
        padding: 50px;
    }
}

/* تأثيرات إضافية */
.form-control:hover {
    border-color: var(--light-color-site-hover);
}

.form-select:hover {
    border-color: var(--light-color-site-hover);
}

.auth-tab:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 178, 117, 0.3);
}

.btn-auth:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 178, 117, 0.3);
}

/* تحسين مظهر التنبيهات */
.alert {
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert-success::before {
    background: var(--light-color-site);
}

.alert-danger::before {
    background: #dc3545;
}

/* تحسين مظهر الأزرار */
.btn-auth {
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-auth:hover::before {
    left: 100%;
}

/* تحسين مظهر الحقول */
.form-control, .form-select {
    position: relative;
}

.form-control:focus, .form-select:focus {
    transform: translateY(-1px);
}

/* تحسين مظهر التبويبات */
.auth-tabs {
    position: relative;
}

.auth-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--input-border-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    z-index: 1;
}
