
    /* Base Styles Using Your Theme Variables */
    .auth-container {
        max-width: 440px;
        width: 100%;
        margin: 80px auto;
        background: var(--bg-primary);
        border-radius: 16px;
        box-shadow: var(--shadow-color-strong);
        overflow: hidden;
        position: relative;
        border: 1px solid var(--border-color);
        background: var(--gradient-bg);
    }

    /* Decorative Elements */
    .auth-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-primary);
    }

    .floating-shapes {
        position: absolute;
        top: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: var(--gradient-primary);
        border-radius: 50%;
        opacity: 0.1;
        animation: float 6s ease-in-out infinite;
    }

    .floating-shapes:nth-child(2) {
        top: auto;
        bottom: -30px;
        left: -30px;
        width: 100px;
        height: 100px;
        animation-delay: 2s;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
        }

        50% {
            transform: translateY(-20px) rotate(180deg);
        }
    }

    /* Header Styles */
    .auth-header {
        text-align: center;
        padding: 40px 40px 20px;
        background: var(--bg-secondary);
    }

    .auth-icon {
        width: 80px;
        height: 80px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        box-shadow: var(--shadow-color);
    }

    .auth-icon i {
        font-size: 2rem;
        color: white;
    }

    .auth-header h2 {
        color: var(--text-primary);
        font-weight: 700;
        font-size: 1.75rem;
        margin-bottom: 8px;
    }

    .auth-header p {
        color: var(--text-secondary);
        font-size: 1rem;
    }

    /* Form Styles */
    .auth-form {
        padding: 0 40px 40px;
    }

    .form-group {
        margin-bottom: 24px;
        position: relative;
    }

    .form-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--text-primary);
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .input-container {
        position: relative;
    }

    .form-control {
        width: 100%;
        padding: 16px 20px 16px 48px;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        font-size: 1rem;
        background: var(--bg-primary);
        color: var(--text-primary);
        transition: all 0.3s ease;
        box-shadow: var(--shadow-color);
    }

    .form-control:focus {
        outline: none;
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px var(--border-color);
        transform: translateY(-2px);
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

    .input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        transition: all 0.3s ease;
    }

    .form-control:focus+.input-icon {
        color: var(--accent-primary);
    }

    /* Password Toggle */
    .password-toggle {
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .password-toggle:hover {
        color: var(--accent-primary);
    }

    /* Checkbox Styles */
    .form-check {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .form-check-input {
        width: 18px;
        height: 18px;
        border: 2px solid var(--border-color);
        border-radius: 4px;
        appearance: none;
        background: var(--bg-primary);
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
    }

    .form-check-input:checked {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
    }

    .form-check-input:checked::after {
        content: '✓';
        position: absolute;
        color: white;
        font-size: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .form-check-label {
        color: var(--text-secondary);
        font-size: 0.9rem;
        cursor: pointer;
    }

    /* Button Styles */
    .btn {
        padding: 16px 24px;
        border: none;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .btn-primary {
        background: var(--gradient-primary);
        color: white;
        box-shadow: var(--shadow-color);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-color-strong);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-google {
        background: var(--bg-primary);
        color: var(--text-primary);
        border: 2px solid var(--border-color);
        box-shadow: var(--shadow-color);
    }

    .btn-google:hover {
        border-color: var(--accent-primary);
        transform: translateY(-1px);
        box-shadow: var(--shadow-color-strong);
    }

    .btn-google img {
        width: 20px;
        height: 20px;
    }

    /* Divider */
    .divider {
        display: flex;
        align-items: center;
        margin: 24px 0;
        color: var(--text-muted);
    }

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid var(--border-color);
    }

    .divider-text {
        padding: 0 16px;
        font-size: 0.875rem;
    }

    /* Footer */
    .auth-footer {
        text-align: center;
        padding: 24px 40px;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
    }

    .auth-footer p {
        margin-bottom: 8px;
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    .auth-footer a {
        color: var(--accent-primary);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .auth-footer a:hover {
        color: var(--text-primary);
        text-decoration: underline;
    }

    /* Validation Styles */
    .validation-summary {
        background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
        border: 1px solid var(--accent-primary);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 24px;
        color: var(--accent-primary);
        font-size: 0.9rem;
    }

    .validation-summary ul {
        list-style: none;
        margin: 0;
    }

    .text-danger {
        color: var(--accent-primary);
        font-size: 0.875rem;
        margin-top: 6px;
        display: block;
    }

    .form-control.error {
        border-color: var(--accent-primary);
    }

    .form-control.success {
        border-color: var(--accent-secondary);
    }

    /* Loading State */
    .btn.loading {
        position: relative;
        color: transparent;
    }

    .btn.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Responsive Design */
    @media (max-width: 480px) {
        .auth-container {
            margin: 20px;
            border-radius: 12px;
        }

        .auth-header {
            padding: 30px 20px 15px;
        }

        .auth-form {
            padding: 0 20px 30px;
        }

        .auth-footer {
            padding: 20px;
        }

        .auth-icon {
            width: 60px;
            height: 60px;
        }

        .auth-icon i {
            font-size: 1.5rem;
        }
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none;
            transition: none;
        }
    }

    /* Focus styles for keyboard navigation */
    .btn:focus,
    .form-control:focus,
    .form-check-input:focus {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

    /* High contrast mode */
    @media (prefers-contrast: high) {
        .form-control {
            border-width: 2px;
        }

        .btn {
            border: 2px solid;
        }
    }
























    /* ================ styel tow  ======================== */

 


    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* =============== RESPONSIVE MEDIA QUERIES =============== */

    /* Large Desktop (1200px and up) */
    @media screen and (min-width: 1200px) {
        .auth-container {
            max-width: 480px;
            margin: 3rem auto;
        }
        
        .auth-header {
            padding: 3rem 3rem 1.5rem;
        }
        
        .auth-form {
            padding: 0 3rem 3rem;
        }
    }

    /* Desktop (992px to 1199px) */
    @media screen and (min-width: 992px) and (max-width: 1199px) {
        .auth-container {
            max-width: 420px;
        }
    }

    /* Tablet Landscape (768px to 991px) */
    @media screen and (min-width: 768px) and (max-width: 991px) {
        .auth-container {
            max-width: 400px;
            margin: 1.5rem auto;
        }
        
        .auth-header {
            padding: 2rem 2rem 1rem;
        }
        
        .auth-form {
            padding: 0 2rem 2rem;
        }
        
        .auth-footer {
            padding: 1.25rem 2rem;
        }
    }

    /* Tablet Portrait (576px to 767px) */
    @media screen and (min-width: 576px) and (max-width: 767px) {
        .auth-container {
            max-width: 90%;
            margin: 1rem auto;
            border-radius: 12px;
        }
        
        .auth-header {
            padding: 1.75rem 1.75rem 1rem;
        }
        
        .auth-form {
            padding: 0 1.75rem 1.75rem;
        }
        
        .auth-footer {
            padding: 1.25rem 1.75rem;
        }
        
        .floating-shapes {
            display: none; /* Hide on smaller tablets for better performance */
        }
    }

    /* Mobile Landscape (480px to 575px) */
    @media screen and (min-width: 480px) and (max-width: 575px) {
        .auth-container {
            max-width: 95%;
            margin: 0.5rem auto;
            border-radius: 10px;
        }
        
        .auth-header {
            padding: 1.5rem 1.5rem 0.75rem;
        }
        
        .auth-form {
            padding: 0 1.5rem 1.5rem;
        }
        
        .auth-footer {
            padding: 1rem 1.5rem;
        }
        
        .auth-icon {
            width: 4rem;
            height: 4rem;
        }
        
        .auth-icon i {
            font-size: 1.5rem;
        }
        
        .form-control {
            padding: 0.875rem 1rem 0.875rem 2.5rem;
            min-height: 3rem;
        }
        
        .input-icon {
            left: 0.875rem;
        }
        
        .password-toggle {
            right: 0.875rem;
        }
    }

    /* Mobile Portrait (320px to 479px) */
    @media screen and (min-width: 320px) and (max-width: 479px) {
        .auth-container {
            max-width: 100%;
            margin: 20px 0px  40px 1px;
            border-radius: 0;
            border: none;
            box-shadow: none;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        .auth-header {
            padding: 2rem 1.25rem 1rem;
            flex-shrink: 0;
        }
        
        .auth-form {
            padding: 0 1.25rem 1.25rem;
            flex: 1;
        }
        
        .auth-footer {
            padding: 1rem 1.25rem;
            flex-shrink: 0;
        }
        
        .auth-icon {
            width: 3.5rem;
            height: 3.5rem;
            margin-bottom: 1rem;
        }
        
        .auth-icon i {
            font-size: 1.25rem;
        }
        
        .form-control {
            padding: 0.75rem 0.875rem 0.75rem 2.25rem;
            min-height: 2.75rem;
            font-size: 16px; /* Prevent zoom on iOS */
        }
        
        .input-icon {
            left: 0.75rem;
            font-size: 1rem;
        }
        
        .password-toggle {
            right: 0.75rem;
            font-size: 1rem;
        }
        
        .btn {
            min-height: 3rem;
            font-size: 16px; /* Prevent zoom on iOS */
        }
        
        .floating-shapes {
            display: none; /* Hide on mobile for better performance */
        }
        
        .divider {
            margin: 1.25rem 0;
        }
        
        .form-group {
            margin-bottom: 1.25rem;
        }
    }

    /* Very Small Mobile (under 320px) */
    @media screen and (max-width: 319px) {
        .auth-container {
            min-height: 100vh;
            border-radius: 0;
            margin: 0;
        }
        
        .auth-header {
            padding: 1.5rem 1rem 0.75rem;
        }
        
        .auth-form {
            padding: 0 1rem 1rem;
        }
        
        .auth-footer {
            padding: 0.75rem 1rem;
        }
        
        .form-control {
            padding: 0.625rem 0.75rem 0.625rem 2rem;
        }
        
        .input-icon {
            left: 0.625rem;
        }
        
        .password-toggle {
            right: 0.625rem;
        }
    }

    /* Height-based media queries for very tall or very short screens */
    @media screen and (max-height: 600px) and (orientation: landscape) {
        .auth-container {
            margin: 0.5rem auto;
            max-height: 95vh;
            overflow-y: auto;
        }
        
        .auth-header {
            padding: 1rem 2rem 0.5rem;
        }
        
        .auth-icon {
            width: 2.5rem;
            height: 2.5rem;
            margin-bottom: 0.5rem;
        }
        
        .auth-icon i {
            font-size: 1rem;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
    }

    /* Print Styles */
    @media print {
        .auth-container {
            box-shadow: none;
            border: 1px solid #000;
            max-width: 100%;
            margin: 0;
        }
        
        .btn-google,
        .password-toggle,
        .floating-shapes {
            display: none;
        }
        
        .form-control {
            background: transparent;
            border: 1px solid #000;
        }
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
        
        .floating-shapes {
            display: none;
        }
    }

    /* Focus styles for keyboard navigation */
    .btn:focus,
    .form-control:focus,
    .form-check-input:focus {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

    /* High contrast mode */
    @media (prefers-contrast: high) {
        .form-control {
            border-width: 2px;
        }
        
        .btn {
            border: 2px solid;
        }
        
        .auth-container {
            border: 2px solid;
        }
    }

    /* Touch device optimizations */
    @media (hover: none) and (pointer: coarse) {
        .btn:hover {
            transform: none;
        }
        
        .form-control:focus {
            transform: none;
        }
        
        .password-toggle,
        .btn {
            min-height: 44px; /* Minimum touch target size */
        }
    }
