/* ============================================
   GAIS Auth Styles — تنسيقات صفحات المصادقة
   ============================================ */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 20px;
}

/* الحاوية الرئيسية */
.auth-container {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 620px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 1px rgba(0, 198, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.06);
}

/* الجانب الأيسر — النموذج */
.auth-card {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ar-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
    text-decoration: none;
}

.auth-logo img {
    border-radius: 12px;
}

.auth-header h1 {
    font-family: var(--font-ar-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* النموذج */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-ar-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 14px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-ar-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    border-color: var(--accent);
    background: rgba(0, 198, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper input:focus + .input-icon {
    color: var(--accent);
}

/* زر إظهار كلمة المرور */
.toggle-password {
    position: absolute;
    left: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--accent);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* قوة كلمة المرور */
.password-strength {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
    min-height: 18px;
    transition: color 0.3s;
}

/* صف الخيارات */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.88rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-wrapper a {
    color: var(--accent);
    text-decoration: underline;
}

.forgot-link {
    color: var(--accent);
    font-size: 0.88rem;
    transition: opacity 0.3s;
}

.forgot-link:hover {
    opacity: 0.8;
}

/* زر الدخول */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    font-family: var(--font-ar-display);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.25);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.35);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth svg {
    width: 20px;
    height: 20px;
}

.btn-register {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-register:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

/* تذييل */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
    transition: opacity 0.3s;
}

.auth-footer a:hover {
    opacity: 0.8;
}

/* التنبيهات */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

/* الجانب البصري */
.auth-visual {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.08), rgba(139, 92, 246, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-visual-content {
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.auth-visual h2 {
    font-family: var(--font-ar-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.auth-visual h2 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-visual p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* الأشكال المتحركة */
.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px; height: 200px;
    background: var(--accent);
    top: 10%; right: -30px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px; height: 150px;
    background: var(--accent-secondary);
    bottom: 15%; left: -20px;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    top: 50%; right: 40%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* تجاوب الشاشات */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 440px;
    }
    .auth-visual {
        display: none;
    }
    .auth-card {
        padding: 36px 28px;
    }
}
