/* Simple & Professional Auth Styles */

:root {
    --primary: #1F6BFF;
    --secondary: #9B30FF;
    --dark: #0E2A47;
    --bg-light: #F6F8FB;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --error: #EF4444;
    --success: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Main Container */
.auth-wrapper {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Left Side - Visual */
.auth-visual {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.visual-content .logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.visual-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.visual-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
}

/* Right Side - Form */
.auth-form-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.form-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-header a:hover {
    color: var(--secondary);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.1);
    transform: translateY(-1px);
}

.form-group.focused {
    transform: translateY(-2px);
}

.form-group.focused label {
    color: var(--primary);
    font-weight: 600;
}

.form-group.focused input {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.15);
}

.form-group input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.password-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

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

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: -0.5rem;
}

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

.checkbox-wrapper label {
    font-size: 0.875rem;
    color: var(--text-gray);
    cursor: pointer;
    margin: 0;
}

.checkbox-wrapper a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 107, 255, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.social-btn:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.social-btn i {
    font-size: 20px;
}

/* Messages */
.auth-message {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.auth-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid var(--success);
}

.auth-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid var(--error);
}

/* RTL Support */
[dir="rtl"] .auth-wrapper {
    direction: rtl;
}

[dir="rtl"] .form-group input {
    text-align: right;
    padding-right: 1rem;
    padding-left: 1rem;
}

[dir="rtl"] .password-toggle-btn {
    left: 1rem;
    right: auto;
}

[dir="rtl"] .password-wrapper input {
    padding-right: 2.5rem;
    padding-left: 1rem;
}

[dir="rtl"] .checkbox-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-btn {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 968px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-section {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0.5rem;
    }

    .auth-wrapper {
        border-radius: 16px;
    }

    .auth-form-section {
        padding: 1.5rem;
    }

    .form-header h1 {
        font-size: 1.75rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-section {
    animation: fadeIn 0.4s ease-out;
}

