﻿

.btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    padding: 8px 24px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-outline:hover {
        background: var(--primary);
        color: white;
    }

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 60px;
}

.login-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Left Side - Info Section */
.login-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

    .login-info::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 150%;
        height: 150%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

.info-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

    .info-header h2 {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 15px;
    }

    .info-header p {
        opacity: 0.9;
        line-height: 1.6;
    }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 16px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

    .feature-list li {
        padding: 10px 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .feature-list i {
        font-size: 18px;
        color: var(--secondary);
    }

/* Right Side - Form Section */
.login-form {
    padding: 50px 40px;
    background: var(--white);
}

.form-header {
    margin-bottom: 30px;
}

    .form-header h2 {
        font-size: 28px;
        font-weight: 800;
        color: var(--dark);
        margin-bottom: 10px;
    }

    .form-header p {
        color: var(--gray);
    }

    .form-header a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

        .form-header a:hover {
            text-decoration: underline;
        }

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

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

.input-icon {
    position: relative;
}

    .input-icon i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray);
    }

    .input-icon input {
        width: 100%;
        padding: 14px 16px 14px 45px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        transition: all 0.3s;
    }

        .input-icon input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
        }

/* Remember & Forgot */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .checkbox-group input {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    .checkbox-group label {
        font-size: 14px;
        color: var(--gray);
        cursor: pointer;
    }

.forgot-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
    }

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e2e8f0;
    }

    .divider span {
        background: var(--white);
        padding: 0 15px;
        position: relative;
        color: var(--gray);
        font-size: 14px;
    }

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

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

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

    .social-btn.google i {
        color: #DB4437;
    }

    .social-btn.apple i {
        color: #000000;
    }

    .social-btn.microsoft i {
        color: #00A4EF;
    }

/* Error Message */
.error-message {
    background: #fee2e2;
    color: var(--danger);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

/* Success Message */
.success-message {
    background: #dcfce7;
    color: var(--success);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

/* Demo Credentials */
.demo-credentials {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 15px;
    margin-top: 25px;
}

    .demo-credentials p {
        font-size: 13px;
        margin-bottom: 8px;
        color: var(--gray);
    }

    .demo-credentials code {
        display: block;
        background: var(--white);
        padding: 8px 12px;
        border-radius: 8px;
        font-family: monospace;
        font-size: 12px;
        color: var(--primary);
        margin-bottom: 5px;
    }


@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

        .nav-links.active {
            display: flex;
        }

    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-info {
        display: none;
    }

    .login-form {
        padding: 40px 25px;
    }

    .social-login {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* URDU LANGUAGE SPECIFIC STYLES - RTL SUPPORT */
/* FOR LOGIN/SIGN IN PAGE */
/* ============================================ */

/* Urdu Font Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

/* Main Urdu Container */
#lang-ur {
    font-family: 'Noto Nastaliq Urdu', 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
}

    /* ===== NAVIGATION RTL ===== */
    #lang-ur .nav-links {
        flex-direction: row-reverse;
    }

    #lang-ur .nav-container {
        direction: rtl;
    }

    #lang-ur .logo {
        direction: ltr;
        display: inline-block;
    }

    /* ===== LANGUAGE DROPDOWN RTL ===== */
    #lang-ur .language-dropdown {
        direction: ltr;
    }

    #lang-ur .dropdown-content {
        right: auto;
        left: 0;
    }

    /* ===== LOGIN CONTAINER RTL ===== */
    #lang-ur .login-container {
        direction: rtl;
    }

    #lang-ur .login-wrapper {
        direction: rtl;
    }

    /* ===== LEFT SIDE - INFO SECTION RTL ===== */
    #lang-ur .login-info {
        direction: rtl;
        text-align: right;
    }

    #lang-ur .info-header {
        text-align: right;
    }

        #lang-ur .info-header h2,
        #lang-ur .info-header p {
            text-align: right;
        }

    /* Stats Grid in Info Section */
    #lang-ur .stats-grid {
        direction: rtl;
    }

    #lang-ur .stat-item {
        text-align: center;
    }

    /* Keep numbers LTR */
    #lang-ur .stat-number {
        direction: ltr;
        display: inline-block;
    }

    #lang-ur .stat-label {
        text-align: center;
    }

    /* Feature List in Info Section */
    #lang-ur .feature-list {
        text-align: right;
    }

        #lang-ur .feature-list li {
            justify-content: flex-start;
            flex-direction: row;
        }

        #lang-ur .feature-list i {
            margin-left: 0;
            margin-right: 0;
        }

    /* ===== RIGHT SIDE - FORM SECTION RTL ===== */
    #lang-ur .login-form {
        direction: rtl;
        text-align: right;
    }

    #lang-ur .form-header {
        text-align: right;
    }

        #lang-ur .form-header h2,
        #lang-ur .form-header p {
            text-align: right;
        }

    /* ===== FORM INPUTS RTL ===== */
    #lang-ur .form-group {
        text-align: right;
    }

        #lang-ur .form-group label {
            text-align: right;
        }

    /* Input icons - move to right side for RTL */
    #lang-ur .input-icon i {
        left: auto;
        right: 16px;
    }

    #lang-ur .input-icon input {
        padding: 14px 45px 14px 16px;
    }

    /* ===== FORM OPTIONS RTL ===== */
    #lang-ur .form-options {
        flex-direction: row;
        justify-content: space-between;
    }

    #lang-ur .checkbox-group {
        flex-direction: row;
    }

        #lang-ur .checkbox-group input {
            margin-left: 0;
            margin-right: 0;
        }

    #lang-ur .forgot-link {
        text-align: left;
    }

    /* ===== LOGIN BUTTON RTL ===== */
    #lang-ur .login-btn i {
        margin-left: 0;
        margin-right: 8px;
    }

    /* ===== DIVIDER RTL ===== */
    #lang-ur .divider {
        text-align: center;
    }

    /* ===== SOCIAL LOGIN BUTTONS RTL ===== */
    #lang-ur .social-login {
        flex-direction: row;
        gap: 15px;
    }

    #lang-ur .social-btn {
        flex-direction: row;
    }

        #lang-ur .social-btn i {
            margin-left: 0;
            margin-right: 0;
        }

    /* ===== ERROR & SUCCESS MESSAGES RTL ===== */
    #lang-ur .error-message,
    #lang-ur .success-message {
        text-align: center;
    }

    /* ===== DEMO CREDENTIALS RTL ===== */
    #lang-ur .demo-credentials {
        text-align: right;
    }

        #lang-ur .demo-credentials p {
            text-align: right;
        }

        #lang-ur .demo-credentials code {
            direction: ltr;
            text-align: left;
            display: block;
        }

    /* ===== FOOTER RTL ===== */
    #lang-ur .footer {
        direction: rtl;
    }

    #lang-ur .footer-grid {
        direction: rtl;
    }

    #lang-ur .footer-col {
        text-align: right;
    }

    #lang-ur .footer-bottom {
        text-align: center;
    }

    /* ===== KEEP EMAILS, PHONES LTR ===== */
    #lang-ur .footer-col a[href^="mailto:"],
    #lang-ur .footer-col a[href^="tel:"] {
        direction: ltr;
        display: inline-block;
    }

/* ===== MOBILE RESPONSIVE RTL ===== */
@media (max-width: 768px) {
    #lang-ur .nav-links {
        flex-direction: column;
        text-align: center;
    }

    #lang-ur .dropdown-content {
        left: 50%;
        right: auto;
        transform: translateX(50%);
    }

    #lang-ur .login-wrapper {
        grid-template-columns: 1fr;
    }

    #lang-ur .login-info {
        display: none;
    }

    #lang-ur .login-form {
        padding: 40px 25px;
    }

    #lang-ur .social-login {
        flex-direction: column;
    }

    #lang-ur .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    #lang-ur .forgot-link {
        align-self: flex-start;
    }

    #lang-ur .footer-grid {
        direction: rtl;
    }

    #lang-ur .footer-col {
        text-align: center;
    }
}

/* ===== FIX INPUT FOCUS STYLES ===== */
#lang-ur .input-icon input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ===== FIX CHECKBOX STYLES ===== */
#lang-ur .checkbox-group input {
    margin: 0;
}

/* ===== FIX SOCIAL BUTTON HOVER ===== */
#lang-ur .social-btn:hover {
    border-color: var(--primary);
    background: var(--light);
}

/* ===== FIX DEMO CREDENTIALS CODE BLOCK ===== */
#lang-ur .demo-credentials code {
    direction: ltr;
    text-align: left;
}

/* ===== FIX SCROLLBAR FOR RTL (Optional) ===== */
#lang-ur ::-webkit-scrollbar {
    width: 10px;
}

#lang-ur ::-webkit-scrollbar-track {
    background: var(--light);
}

#lang-ur ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* ===== FIX DROPDOWN CONTENT POSITION ===== */
#lang-ur .dropdown-content {
    text-align: right;
}

    #lang-ur .dropdown-content a {
        justify-content: flex-start;
    }

/* ===== FIX LANGUAGE BUTTON DROPDOWN ARROW ===== */
#lang-ur .language-btn .fa-chevron-down {
    transform: rotate(0deg);
}

/* ===== FIX STATS SECTION NUMBERS ===== */
#lang-ur .login-info .stat-number {
    display: inline-block;
}

/* ===== FIX FEATURE LIST ICON POSITION ===== */
#lang-ur .feature-list li i {
    order: 1;
}

#lang-ur .feature-list li span {
    order: 2;
}

/* ===== ENSURE PROPER WORD WRAPPING ===== */
#lang-ur .info-header p,
#lang-ur .feature-list li,
#lang-ur .form-group label,
#lang-ur .checkbox-group label,
#lang-ur .demo-credentials p,
#lang-ur .footer-col a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== FIX BUTTON ICONS ===== */
#lang-ur .login-btn i,
#lang-ur .social-btn i {
    transform: none;
}

/* ===== FIX PLACEHOLDER TEXT ALIGNMENT ===== */
#lang-ur ::placeholder {
    text-align: right;
}

#lang-ur input::placeholder {
    text-align: right;
}

/* ===== FIX STATS GRID RESPONSIVE ===== */
@media (max-width: 768px) {
    #lang-ur .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FIX LOGIN WRAPPER SHADOW ===== */
#lang-ur .login-wrapper {
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* ===== FIX INFO SECTION GRADIENT ===== */
#lang-ur .login-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* ===== FIX STAT ITEM BACKGROUND ===== */
#lang-ur .stat-item {
    background: rgba(255,255,255,0.1);
}