/* creative-auth.css - Matches Dashboard Creative Theme */
:root {
    --primary: #5841E3;
    /* Creative Purple */
    --primary-dark: #4e3ac9;
    --accent: #00D2D3;
    /* Cyan/Teal */
    --bg-light: #F8F9FD;
    --text-dark: #2F3542;
    --text-muted: #747D8C;
    --border-color: #E8EEF4;
    --success: #10B981;
    --danger: #EF4444;
    --gradient-primary: linear-gradient(135deg, #5841E3 0%, #a55eea 100%);
    --gradient-orange: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --shadow-soft: 0 10px 40px rgba(88, 65, 227, 0.08);
    --shadow-hover: 0 20px 40px rgba(88, 65, 227, 0.15);
    --radius-lg: 20px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    direction: ltr;
    overflow-x: hidden;
    background: var(--bg-light);
}

/* Left Section - Simple Solid Background */
.left-section {
    width: 50vw;
    height: 100vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: white;
    direction: rtl;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.illustration-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-illustration {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

/* Right Section - Glass/Clean Look */
.auth-container {
    width: 50vw;
    min-height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    direction: rtl;
    position: relative;
    padding: 40px 0;
    margin-left: 50vw;
}

.auth-modal {
    width: 100%;
    max-width: 480px;
    padding: 0 30px;
}

/* Back Button */
/* Back Button - Plain Text */
.back-to-home-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.95rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.back-to-home-btn:hover {
    color: var(--primary);
    transform: translateX(-3px);
    box-shadow: none;
}

/* Header & Tabs */
.auth-fixed-header {
    background: white;
    padding-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    height: 60px;
}

.auth-tabs {
    background: #F1F2F6;
    padding: 6px;
    border-radius: 16px;
    display: flex;
    gap: 5px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--text-dark) 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: #FAFAFA;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(88, 65, 227, 0.1);
}

/* Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.terms-checkbox {
    margin-bottom: 25px;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: 0.3s;
    background: white;
}

.custom-checkbox input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.custom-checkbox input:checked~.checkmark::after {
    display: block;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.forgot-password {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Primary Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.auth-btn.primary {
    background-image: linear-gradient(to right, var(--primary) 0%, #a55eea 51%, var(--primary) 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 10px 20px rgba(88, 65, 227, 0.25);
}

.auth-btn.primary:hover {
    background-position: right center;
    box-shadow: 0 15px 30px rgba(88, 65, 227, 0.35);
    transform: translateY(-2px);
}

/* Google Button */
.auth-btn.google-btn {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    margin-top: 20px;
}

.auth-btn.google-btn:hover {
    background: #F8F9FD;
    border-color: #d1d9e2;
    transform: translateY(-2px);
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

/* Left Section Content */
.description-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.main-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.feature-item i {
    background: white;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Password Strength */
.password-strength {
    margin-top: -10px;
    margin-bottom: 20px;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    transition: 0.3s;
}

.strength-bar.weak::after {
    width: 30%;
    background: #ff4757;
}

.strength-bar.medium::after {
    width: 60%;
    background: #ffa502;
}

.strength-bar.strong::after {
    width: 100%;
    background: #2ed573;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Feedback */
.auth-message {
    padding: 30px;
    text-align: center;
}

.auth-message i {
    font-size: 60px;
    margin-bottom: 20px;
}

.auth-message.success i {
    color: var(--success);
}

.auth-message.error i {
    color: var(--danger);
}

.auth-message h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-message p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .left-section {
        display: none;
    }

    .auth-container {
        width: 100%;
        margin-left: 0;
        padding: 15px;
    }

    .auth-modal {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {

    /* Mobile Header */
    .auth-form h2 {
        font-size: 1.6rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* Tabs compacting */
    .auth-tabs {
        padding: 4px;
        gap: 3px;
    }

    .tab-btn {
        padding: 10px 5px;
        font-size: 0.85rem;
    }

    /* Input Fields Compacting */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group input {
        padding: 12px 15px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    /* Buttons */
    .auth-btn {
        padding: 12px;
        font-size: 1rem;
    }

    .back-to-home-btn {
        top: 20px;
        right: 20px;
        font-size: 0.85rem;
    }

    .back-to-home-btn i {
        font-size: 0.9rem;
    }
}