    .my-account-btn {
        background: linear-gradient(45deg, #D10024, #D10024);
        color: white;
        border: none;
        padding: 12px 30px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(249, 244, 237, 0.6);
        position: relative;
        overflow: hidden;
    }

    .my-account-btn:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 8px 20px rgba(249, 244, 237, 0.6);
        ;
    }

    .my-account-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .my-account-btn:hover::before {
        left: 100%;
    }

   .modal {
    display: none;
    position: fixed;
    top: 0; /* changed from top: 2 */
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.modal-content {
    width: 95%;
    max-width: 800px;
    max-height: 90vh; /* fixed height */
    background: linear-gradient(145deg, #1e1e2f, #2d2d44);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    gap: 0;
}

    /* @keyframes modalEntrance {
        0% {
            opacity: 0;
            transform: translateY(-50px) rotateX(60deg);
        }

        100% {
            opacity: 1;
            transform: translateY(0) rotateX(0);
        }
    } */

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        /* Previously center */
        padding: 20px 30px;
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
    }

    .close-btn {
        background: transparent;
        border: none;
        color: #aaa;
        font-size: 2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        position: absolute;
        top: 20px;
        right: 30px;
        z-index: 10;
    }

    .close-btn:hover {
        color: white;
        transform: rotate(90deg) scale(1.2);
    }

    .modal-title {
        color: white;
        font-size: 1.8rem;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }


    .modal-body {
        display: flex;
        min-height: 450px;
    }

  .graphic-side {
    background-image: url('/images/cart2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;


        flex: 1;
        /* background: linear-gradient(45deg, #D10024, #E696A399); */
        display: flex;
        flex-direction: column;
        /* justify-content: center; */
        align-items: center;
        padding: 30px;
        position: relative;
        overflow: hidden;
        padding-bottom: 50px !important;
        transform: translateZ(20px);}

    .form-side {
        flex: 1;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: max-content;
        margin-top: -50px;    }

 .graphic-text {
        text-align: center;
        margin-top: 40px;
        color: white;
        z-index: 1;
    }

    .graphic-text h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;  color: white;
        text-shadow: 0 2px 4px rgb(249, 0, 0);
    }

    .graphic-text p {
        font-size: 1rem;
        opacity: 0.9;
    }

    .error-text{
        font-size: 13px;
        font-weight: 500;
        color: white; /* nice red for alerts */
        font-family: 'Inter', sans-serif; /* or your fallback font */
        margin-top: 2px;
        display: block;
    }

    .tabs {
        display: flex;
        margin-top: 30px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        padding: 5px;
    }

    .tab {
        flex: 1;
        padding: 12px;
        text-align: center;
        color: #aaa;
        cursor: pointer;
        border-radius: 50px;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    .tab.active {
        background: linear-gradient(45deg, #D10024, #D10024);
        color: white;
        box-shadow: 0 5px 15px rgba(249, 244, 237, 0.6);height: auto;
    }

    .form-container {
        display: none;
        animation: fadeIn 0.5s ease;
    }

    .form-container.active {
        display: block;
        height: auto;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .form-group-login {
        margin-bottom: 20px;
        position: relative;
        margin-top: 20px;
    }

    .form-group-login label {
        display: block;
        margin-bottom: 8px;
        color: #ddd;
        font-weight: 500;
    }

    .form-group-login input {
        width: 100%;
        padding: 14px 20px;
        border: none;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        color: white;
        font-size: 1.3rem;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }



    .form-group-login input:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 152, 25, 0.5);
        box-shadow: 0 0 0 3px rgba(255, 152, 25, 0.2);
    }

    .form-group-login input::placeholder {
        color: #999;
    }

    .forgot-password {
        display: block;
        text-align: right;
        color: #D10024;
        text-decoration: none;
        font-size: 1.1rem;
        margin-top: 5px;
        transition: all 0.3s ease;
    }

    .forgot-password:hover {
        color: #D10024;
        text-decoration: underline;
    }

    .submit-btn {
        width: 100%;
        padding: 15px;
        background: linear-gradient(45deg, #D10024, #D10024);
        border: none;
        border-radius: 8px;
        color: white;
        font-size: 1.5rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(249, 244, 237, 0.6);
        position: relative;
        overflow: hidden;
    }

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(249, 244, 237, 0.6);
        ;
    }

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .submit-btn:hover::before {
        left: 100%;
    }

    .social-login {
        margin-top: 30px;
        text-align: center;
    }

    .social-text {
        color: #ddd;
        margin-bottom: 15px;
        position: relative;
    }

    .social-text::before,
    .social-text::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 30%;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .social-text::before {
        left: 0;
    }

    .social-text::after {
        right: 0;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .social-icon:hover {
        transform: translateY(-5px) scale(1.1);
        background: rgba(255, 255, 255, 0.2);
    }

    .social-icon.facebook:hover {
        background: #3b5998;
    }

    .social-icon.google:hover {
        background: #dd4b39;
    }

    .social-icon.twitter:hover {
        background: #1da1f2;
    }

    .signup-text {
        text-align: center;
        margin-top: 20px;
        color: #aaa;
        font-size: 1.3rem;
    }

    .signup-text a {
        color: #D10024;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .signup-text a:hover {
        color: #D10024;
        text-decoration: underline;
    }

    .login-footer {
        text-align: center;
        padding: 20px;
        color: #aaa;
        font-size: 0.9rem;
        margin-top: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Large desktops (1201px and above) */
    @media (min-width: 1201px) {
        .modal-content {
            width: 70%;
        }

        .graphic-side, .form-side {
            padding: 35px;
        }

        .graphic-text h3 {
            font-size: 2rem;
        }

        .graphic-text p {
            font-size: 1.1rem;
        }

        .form-group-login input {
            font-size: 1.3rem;
            padding: 14px 20px;
        }

        .my-account-btn, .submit-btn {
            font-size: 1.25rem;
            padding: 12px 35px;
        }
    }

    /* Laptops / small desktops (1025px - 1200px) */
    @media (min-width: 1025px) and (max-width: 1200px) {
        .modal-content {
            width: 80%;
        }

        .graphic-side, .form-side {
            padding: 30px;
        }

        .graphic-text h3 {
            font-size: 1.8rem;
        }

        .graphic-text p {
            font-size: 1.05rem;
        }

        .form-group-login input {
            font-size: 1.3rem;
            padding: 14px 20px;
        }

        .my-account-btn, .submit-btn {
            font-size: 1.2rem;
            padding: 12px 30px;
        }
    }


    /* Large tablets / iPads (769px - 1024px) */
    @media (min-width: 769px) and (max-width: 1024px) {
        .modal-content {
            width: 85%;
        }

        .graphic-side, .form-side {
            padding: 25px;
        }

        .graphic-text h3 {
            font-size: 1.7rem;
        }

        .graphic-text p {
            font-size: 1rem;
        }

        .form-group-login input {
            font-size: 1.25rem;
            padding: 14px 20px;
        }

        .my-account-btn, .submit-btn {
            font-size: 1.15rem;
            padding: 12px 28px;
        }
    }

    /* Small tablets (481px - 768px) */
    @media (min-width: 481px) and (max-width: 768px) {
        .graphic-side {
            display: none !important;
        }

        .form-side {
            flex: 1 1 100%;
            padding: 20px;
        }

        /* Logo centered */
        .logo {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 15px;
        }

        .logo img {
            height: 50px;
            display: block !important;
        }

        /* Buttons left-right aligned below logo */
        .header-buttons {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            gap: 10px;
        }

        .my-account-btn {
            flex: 1;
            font-size: 1.1rem;
            padding: 12px 0;
        }

        /* Tabs horizontal */
        .tabs {
            flex-direction: row;
            gap: 8px;
        }
    }

    /* Extra small devices (0px - 480px) */
    @media (max-width: 480px) {
        .graphic-side {
            display: none !important;
        }

        .form-side {
            flex: 1 1 100%;
            padding: 15px;
        }

        /* Logo centered */
        .logo {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 10px;
        }

        .logo img {
            height: 45px;
            display: block !important;
        }

        /* Buttons left-right aligned below logo */
        .header-buttons {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            gap: 8px;
        }

        .my-account-btn {
            flex: 1;
            font-size: 1rem;
            padding: 10px 0;
        }

        /* Tabs horizontal */
        .tabs {
            flex-direction: row;
            gap: 5px;
        }
    }
