/* SEO: Montserrat is now loaded via Link tag in HTML to avoid chaining */

/* SEO: Force font-display: swap for Font Awesome icons */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
    src: local('Font Awesome 6 Free');
}

@font-face {
    font-family: 'Font Awesome 5 Free';
    font-display: swap;
    src: local('Font Awesome 5 Free');
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e0f2f7 0%, #a8dadc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
    /* Allow scrolling */
    padding: 20px 0;
    /* Add padding for scroll space */
}

h1 {
    font-weight: bold;
    margin: 0;
}

h2 {
    text-align: center;
}

p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

span {
    font-size: 12px;
}

a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

button {
    border-radius: 20px;
    border: 1px solid #457b9d;
    background-color: #457b9d;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

button:active {
    transform: scale(0.95);
}

button:hover {
    background-color: #1d3557;
    border-color: #1d3557;
    box-shadow: 0 5px 15px rgba(69, 123, 157, 0.3);
}

button:focus {
    outline: none;
}

/* Visually hidden class for accessibility - hides content visually but keeps it available for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

button.ghost {
    background-color: transparent;
    border-color: #457b9d;
}

form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    padding: 50px 50px;
    height: 100%;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for desktop forms */
form::-webkit-scrollbar {
    width: 8px;
}

form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

form::-webkit-scrollbar-thumb {
    background: #457b9d;
    border-radius: 10px;
}

form::-webkit-scrollbar-thumb:hover {
    background: #1d3557;
}

input {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
}

input:focus {
    border-color: #457b9d;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
    outline: none;
}

.container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
        0 15px 25px rgba(69, 123, 157, 0.1);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
    transition: box-shadow 0.3s ease;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: #1d3557;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    background: rgba(255, 255, 255, 0.1) url('../Images/logo.png') center center repeat;
    background-size: 40%;
    backdrop-filter: blur(10px);
}

.mobile-login {
    display: none;
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.social-container {
    margin: 20px 0;
}

.social-container a {
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.social-container a:hover {
    border-color: #457b9d;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(69, 123, 157, 0.2);
}

/* Updated Subscription Plan Styles */
.subscription-plans {
    width: 100%;
    margin: 20px 0 10px 0;
}

.plan-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.plan-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    gap: 4px;
    min-height: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.plan-option label:hover {
    transform: translateY(-2px);
    border-color: #457b9d;
    box-shadow: 0 8px 15px rgba(69, 123, 157, 0.15);
}

.plan-option input[type="radio"]:checked+label {
    background: linear-gradient(135deg, #457b9d 0%, #1d3557 100%);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(29, 53, 87, 0.3);
}

.plan-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 18px;
    font-weight: 800;
    color: #457b9d;
}

.plan-price small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

/* Selected State Text Colors */
.plan-option input[type="radio"]:checked+label .plan-name,
.plan-option input[type="radio"]:checked+label .plan-price {
    color: #fff;
}

/* Lifetime Plan Special Styling */
.plan-option.plan-lifetime {
    width: 100%;
}

.plan-option.plan-lifetime label {
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 25px;
    background: linear-gradient(135deg, #a8dadc 0%, #edf6f9 100%);
    border: 2px solid #a8dadc;
}

.plan-option.plan-lifetime input[type="radio"]:checked+label {
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    box-shadow: 0 8px 20px rgba(214, 40, 40, 0.3);
}

.plan-option.plan-lifetime .old-price {
    text-decoration: line-through;
    color: #888;
    margin-left: 8px;
    font-size: 13px;
}

.plan-option.plan-lifetime input[type="radio"]:checked+label .old-price {
    color: rgba(255, 255, 255, 0.7);
}

/* Terms Agreement Checkbox Styles */
.terms-agreement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0 10px 0;
    padding: 0 5px;
}

.terms-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #457b9d;
}

.terms-agreement label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.terms-agreement .terms-link {
    color: #457b9d;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms-agreement .terms-link:hover {
    color: #1d3557;
}

/* Disabled button state */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        display: none;
    }

    .mobile-login {
        display: block;
    }

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

    .mobile-login {
        background-color: #080710;
        min-height: 100vh;
        height: auto;
        padding-bottom: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .background {
        width: 430px;
        height: 520px;
        position: absolute;
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
    }

    .background .shape {
        height: 200px;
        width: 200px;
        position: absolute;
        border-radius: 50%;
    }

    .shape:first-child {
        background: linear-gradient(#1845ad,
                #23a2f6);
        left: -80px;
        top: -80px;
    }

    .shape:last-child {
        background: linear-gradient(to right,
                #ff512f,
                #f09819);
        right: -30px;
        bottom: -80px;
    }

    .mobile-form {
        height: 900px;
        width: 400px;
        max-height: 90vh;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.15) 0%,
                rgba(255, 255, 255, 0.08) 25%,
                rgba(255, 255, 255, 0.12) 50%,
                rgba(255, 255, 255, 0.06) 75%,
                rgba(255, 255, 255, 0.10) 100%);
        position: absolute;
        transform: translate(-50%, -50%);
        top: 50%;
        left: 50%;
        border-radius: 25px;
        backdrop-filter: blur(20px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow:
            0 20px 40px rgba(8, 7, 16, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        padding: 0px 35px 0px 40px;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Custom scrollbar for mobile forms */
    .mobile-form::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-form::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin: 25px 0;
    }

    .mobile-form::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }

    .mobile-form::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .mobile-form:hover {
        transform: translate(-50%, -50%) scale(1.02);
        box-shadow:
            0 25px 50px rgba(8, 7, 16, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    /* Login form specific styles */
    .mobile-login .mobile-form:not(.mobile-register-form) {
        padding: 0px 35px !important;
    }

    .mobile-login .mobile-form:not(.mobile-register-form) h3 {
        margin-top: 10px !important;
    }

    .mobile-login .mobile-form:not(.mobile-register-form) label {
        margin-top: 0px !important;
    }

    .mobile-login .mobile-form:not(.mobile-register-form) .social {
        margin-top: 15px !important;
    }

    .mobile-login .mobile-form:not(.mobile-register-form) button {
        margin-top: 20px !important;
    }

    .mobile-register-form {
        padding: 0px 35px 30px 35px !important;
        height: 520px !important;
        max-height: 80vh !important;
    }

    .mobile-register-form h3 {
        margin-top: 0px !important;
    }

    .mobile-register-form label {
        margin-top: 10px !important;
    }

    .mobile-register-form .social {
        margin-top: 5px !important;
    }

    .mobile-register-form button {
        margin-top: 10px !important;
    }

    /* Force everything to Poppins EXCEPT icon elements */
    .mobile-form *:not(i):not(.fas):not(.far):not(.fab):not(.toggle-password) {
        font-family: 'Poppins', sans-serif;
        color: #ffffff;
        letter-spacing: 0.5px;
        outline: none;
        border: none;
    }

    /* Definitive Font Awesome restoration for all mobile icons */
    .mobile-form i,
    .mobile-form .fas,
    .mobile-form .far,
    .mobile-form .fab,
    .mobile-form .toggle-password {
        color: #ffffff !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 999 !important;
        font-style: normal !important;
    }

    .mobile-form .fas {
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
    }

    .mobile-form .far,
    .mobile-form .toggle-password {
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 400 !important;
    }

    .mobile-form .fab {
        font-family: "Font Awesome 5 Brands" !important;
        font-weight: 400 !important;
    }

    /* Ensure container and input play nice on mobile */
    .mobile-form .password-container {
        position: relative !important;
        width: 100% !important;
        display: block !important;
        margin-top: 0px !important;
        /* Move more closely under label */
    }

    .mobile-form .password-container input {
        margin-top: 0 !important;
        padding-right: 50px !important;
        /* Room for eye */
    }

    .mobile-form .toggle-password {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 20px !important;
    }

    .mobile-form h3 {
        font-size: 34px;
        font-weight: 700;
        line-height: 44px;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 30px;
        background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.6) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px !important;
        letter-spacing: 1px;
        position: relative;
    }

    .mobile-form h3:after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.6));
        border-radius: 2px;
    }

    .mobile-form label {
        display: block;
        margin-top: 30px;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        letter-spacing: 0.5px;
        position: relative;
    }

    .terms-label:before {
        content: '';
        position: absolute;
        bottom: -7px !important;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.6));
        transition: width 0.3s ease;
    }


    .mobile-form label:before {
        content: '';
        position: absolute;
        bottom: -45px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.6));
        transition: width 0.3s ease;
    }

    .mobile-form label.focused:before {
        width: 100%;
    }

    .mobile-form input {
        display: block;
        width: 100%;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.1) 0%,
                rgba(255, 255, 255, 0.05) 100%);
        border-radius: 12px;
        padding: 15px 20px;
        margin-top: 8px;
        font-size: 15px;
        font-weight: 400;
        border: 2px solid rgba(255, 255, 255, 0.15);
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        color: #ffffff;
        backdrop-filter: blur(10px);
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .mobile-form input:focus {
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.2) 0%,
                rgba(255, 255, 255, 0.1) 100%);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.2),
            0 0 0 4px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
        outline: none;
    }

    .mobile-form input::placeholder {
        color: rgba(255, 255, 255, 0.6);
        font-weight: 300;
    }

    .mobile-form ::placeholder {
        color: #e5e5e5;
    }

    .mobile-form button {
        margin-top: 25px;
        width: 100%;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #ffffff 50%, #f5f5f5 75%, #ffffff 100%);
        color: #080710;
        padding: 20px 0;
        font-size: 18px;
        font-weight: 800;
        border-radius: 20px;
        cursor: pointer;
        border: none;
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow:
            0 12px 35px rgba(255, 255, 255, 0.4),
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 4px 15px rgba(69, 123, 157, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            inset 0 -1px 0 rgba(0, 0, 0, 0.05);
        position: relative;
        overflow: hidden;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .mobile-form button:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.6),
                rgba(255, 255, 255, 0.8),
                rgba(255, 255, 255, 0.6),
                transparent);
        transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1;
    }

    .mobile-form button:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(69, 123, 157, 0.1) 0%, transparent 70%);
        transition: all 0.6s ease;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 0;
    }

    .mobile-form button:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow:
            0 20px 50px rgba(255, 255, 255, 0.5),
            0 12px 35px rgba(0, 0, 0, 0.2),
            0 8px 25px rgba(69, 123, 157, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 1),
            inset 0 -2px 0 rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, #ffffff 0%, #fafafa 20%, #ffffff 40%, #f8f8f8 60%, #ffffff 80%, #f7f7f7 100%);
        border: 2px solid rgba(69, 123, 157, 0.3);
    }

    .mobile-form button:hover:before {
        left: 100%;
    }

    .mobile-form button:hover:after {
        width: 300px;
        height: 300px;
    }

    .mobile-form button:active {
        transform: translateY(-3px) scale(1.01);
        box-shadow:
            0 10px 30px rgba(255, 255, 255, 0.4),
            0 6px 20px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        transition: all 0.1s ease;
    }

    .mobile-form button span {
        position: relative;
        z-index: 2;
        color: #000000 !important;
        display: inline-block;
        text-align: center;
        width: 100%;
        font-weight: 900;
        font-size: 16px;
        letter-spacing: 1.5px;
        text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.1),
            0 0 10px rgba(0, 0, 0, 0.05);
        background: linear-gradient(135deg, #000000 0%, #333333 50%, #000000 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
        transition: all 0.3s ease;
    }

    .mobile-form button:hover span {
        background: linear-gradient(135deg, #000000 0%, #555555 30%, #222222 70%, #000000 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 0 15px rgba(0, 0, 0, 0.1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        transform: scale(1.02);
    }

    /* Force black text on button spans regardless of other rules */
    button span {
        color: #000000 !important;
        text-align: center;
        font-weight: 900;
    }

    .mobile-form .social {
        margin-top: 15px;
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .mobile-form .social div {
        width: 140px;
        border-radius: 15px;
        padding: 18px 25px;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.3) 0%,
                rgba(255, 255, 255, 0.15) 30%,
                rgba(255, 255, 255, 0.25) 60%,
                rgba(255, 255, 255, 0.1) 100%);
        color: #eaf0fb;
        text-align: center;
        cursor: pointer;
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 2px solid rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(15px);
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.15),
            0 6px 20px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.05);
        font-weight: 600;

        font-size: 15px;
        position: relative;

        overflow: hidden;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-form .social div:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                rgba(255, 255, 255, 0.5),
                rgba(255, 255, 255, 0.3),
                transparent);
        transition: left 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1;
    }

    .mobile-form .social div:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        transition: all 0.6s ease;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 0;
    }

    .mobile-form .social div:hover {
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.4) 0%,
                rgba(255, 255, 255, 0.25) 25%,
                rgba(255, 255, 255, 0.35) 50%,
                rgba(255, 255, 255, 0.2) 75%,
                rgba(255, 255, 255, 0.3) 100%);
        transform: translateY(-5px) scale(1.08);
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.25),
            0 10px 30px rgba(255, 255, 255, 0.3),
            0 6px 20px rgba(69, 123, 157, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .mobile-form .social div:hover:before {
        left: 100%;
    }

    .mobile-form .social div:hover:after {
        width: 200px;
        height: 200px;
    }

    .mobile-form .social div span {
        position: relative;
        z-index: 2;
    }

    .mobile-form .social i {
        margin-right: 8px;
        font-size: 16px;
    }

    .register-text {
        text-align: center;
        font-size: 14px;
        margin-top: 20px;
        color: #ffffff;
        opacity: 0.8;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

    .register-text:hover {
        opacity: 1;
    }

    .login-text {
        text-align: center;
        font-size: 14px;
        margin-top: 20px;
        color: #ffffff;
        opacity: 0.8;
    }

    .login-link {
        cursor: pointer;
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        text-decoration: underline;
        transition: opacity 0.3s ease;
    }

    .login-link:hover {
        opacity: 1;
    }

    /* Subscription Plan Styles for Mobile */
    .subscription-plans-mobile {
        width: 100%;
        margin: 15px 0 10px 0;
    }

    .plan-row-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .plan-option-mobile {
        position: relative;
    }

    .plan-option-mobile input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .plan-option-mobile label {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 30px;
        width: 100%;
        max-width: 440px;
        background: linear-gradient(135deg,
                rgba(102, 126, 234, 0.3) 0%,
                rgba(118, 75, 162, 0.3) 100%);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        gap: 3px;
        min-height: 60px;
        backdrop-filter: blur(10px);
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        margin: 0 auto;
        text-align: center;
    }

    .plan-option-mobile label:hover {
        transform: translateY(-3px);
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        background: linear-gradient(135deg,
                rgba(102, 126, 234, 0.4) 0%,
                rgba(118, 75, 162, 0.4) 100%);
    }

    .plan-option-mobile input[type="radio"]:checked+label {
        background: linear-gradient(135deg,
                rgba(102, 126, 234, 0.5) 0%,
                rgba(118, 75, 162, 0.5) 100%);
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow:
            0 8px 25px rgba(102, 126, 234, 0.3),
            0 0 0 3px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

    .plan-option-mobile.plan-lifetime-mobile {
        grid-column: 1 / -1;
    }

    .plan-option-mobile.plan-lifetime-mobile label {
        background: linear-gradient(135deg,
                rgba(102, 126, 234, 0.35) 0%,
                rgba(118, 75, 162, 0.35) 100%);
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .plan-option-mobile.plan-lifetime-mobile label:hover {
        background: linear-gradient(135deg,
                rgba(102, 126, 234, 0.45) 0%,
                rgba(118, 75, 162, 0.45) 100%);
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }

    .plan-option-mobile.plan-lifetime-mobile input[type="radio"]:checked+label {
        border-color: rgba(255, 255, 255, 0.7);
        background: linear-gradient(135deg,
                rgba(102, 126, 234, 0.6) 0%,
                rgba(118, 75, 162, 0.6) 100%);
        box-shadow:
            0 10px 35px rgba(102, 126, 234, 0.4),
            0 0 0 3px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .plan-option-mobile .plan-name {
        font-size: 11px;
        font-weight: 600;
        color: #ffffff;
        text-transform: capitalize;
        letter-spacing: 0.3px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .plan-option-mobile .plan-price {
        font-size: 14px;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    /* Terms Agreement Checkbox Mobile Styles */
    .terms-agreement-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 15px 0 10px 0;
        padding: 0 5px;
    }

    .terms-agreement-mobile input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #457b9d;
    }

    .terms-agreement-mobile label {
        font-size: 13px;
        color: #ffffff !important;
        cursor: pointer;
        user-select: none;
    }

    .terms-agreement-mobile .terms-link {
        color: #ffffff !important;
        text-decoration: underline;
        font-weight: 600;
        transition: opacity 0.3s ease;
        opacity: 0.9;
    }

    .terms-agreement-mobile .terms-link:hover {
        opacity: 1;
    }

    /* Strike-through old price only for mobile lifetime option */
    .plan-option-mobile.plan-lifetime-mobile .old-price {
        text-decoration: line-through;
        opacity: 0.85;
    }

    /* Stack old price under current price for mobile lifetime option */
    .plan-option-mobile.plan-lifetime-mobile .plan-price {
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.1;
    }

    .plan-option-mobile.plan-lifetime-mobile .plan-price .old-price {
        font-size: 10px;
        margin-top: 10px;
    }

    .container {
        width: 90%;
    }

    .form-container {
        width: 100%;
        position: absolute;
        top: 0;
        height: 100%;
    }

    .sign-in-container,
    .sign-up-container {
        width: 100%;
        left: 0;
    }

    .overlay-container {
        width: 100%;
        left: 0;
        height: 100%;
    }

    .overlay {
        width: 100%;
        left: 0;
    }

    .overlay-panel {
        width: 100%;
        padding: 0 20px;
    }

    .overlay-left,
    .overlay-right {
        transform: translateX(0);
    }

    .container.right-panel-active .overlay-left {
        transform: translateX(-100%);
    }

    .container.right-panel-active .overlay-right {
        transform: translateX(100%);
    }
}

@media (max-width: 480px) {
    body {
        height: 100vh;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    h2 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .container {
        width: 100%;
        min-height: 500px;
        border-radius: 5px;
    }

    form {
        padding: 0 30px;
    }

    input {
        padding: 10px 12px;
        margin: 5px 0;
    }

    button {
        padding: 10px 30px;
        font-size: 11px;
    }

    .social-container a {
        height: 35px;
        width: 35px;
        margin: 0 3px;
    }

    .social-container {
        margin: 15px 0;
    }

    p {
        font-size: 12px;
        margin: 15px 0 20px;
    }

    span {
        font-size: 11px;
    }

}

/* Mobile form responsive adjustments */
.background {
    width: 350px;
    height: 450px;
}

.background .shape {
    height: 150px;
    width: 150px;
}

.shape:first-child {
    left: -60px;
    top: -60px;
}

.shape:last-child {
    right: -20px;
    bottom: -60px;
}

.mobile-form {
    height: 450px;
    width: 320px;
    padding: 40px 25px;
}

.mobile-form h3 {
    font-size: 28px;
    line-height: 36px;
}

.mobile-form label {
    margin-top: 25px;
    font-size: 14px;
}

.mobile-form input {
    height: 25px !important;
    margin-top: 6px;
    font-size: 13px;
}

.mobile-form button {
    margin-top: 20px;
    padding: 12px 0;
    font-size: 16px;
}

.mobile-form .social {
    margin-top: 25px;
    flex-direction: column;
    gap: 5px;
}

.mobile-form .social div {
    width: 100%;
    margin-left: 0;
}

.mobile-form .social .fb {
    margin-left: 0;
}

.shape {
    display: none;
}

.mobile-login {
    background: linear-gradient(135deg, #e0f2f7 0%, #a8dadc 100%) !important;
}

.mobile-form * {
    color: #333 !important;
}

.mobile-form input {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.mobile-form button {
    background-color: #457b9d !important;
    color: #ffffff !important;
}

.mobile-form .social div {
    background-color: rgba(69, 123, 157, 0.1) !important;
    color: #457b9d !important;
}

.mobile-form * {
    color: #ffffff !important;
}

.mobile-form input {
    background-color: rgba(255, 255, 255, 0.07) !important;
}

.mobile-form button {
    background-color: #ffffff !important;
    color: #080710 !important;
}

.mobile-form .social div {
    background-color: rgba(255, 255, 255, 0.27) !important;
    color: #eaf0fb !important;
}

.mobile-form * {
    color: #000 !important;
}

.mobile-form .fb {
    display: none !important;
}

.mobile-form .go {
    width: 100% !important;
    background-color: rgba(69, 123, 157, 0.2) !important;
    border: 1px solid #457b9d !important;
    color: #457b9d !important;
    padding: 10px !important;
    border-radius: 8px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.mobile-form .go:hover {
    background-color: #457b9d !important;
    color: #ffffff !important;
}

.mobile-login {
    background: #080710 !important;
}

.mobile-form * {
    color: #ffffff !important;
}

.mobile-form input {
    background-color: rgba(255, 255, 255, 0.07) !important;
}

.mobile-form button {
    background-color: #ffffff !important;
    color: #080710 !important;
}

.mobile-form .go {
    background-color: rgba(255, 255, 255, 0.27) !important;
    color: #eaf0fb !important;
}

.mobile-form .go:hover {
    background-color: rgba(255, 255, 255, 0.47) !important;
}

@media (max-width: 768px) {
    body {
        background: #080710 !important;
    }
}

.mobile-logo {
    display: block;
    max-width: 130px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
    margin-left: -30px;
}

.mobile-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.mobile-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 200px;
    height: auto;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.mobile-logo-bg {
    display: none !important;
}

.mobile-logo-bg {
    display: block !important;
}

.overlay-panel {
    background: rgba(255, 255, 255, 0.1) !important;
    background-size: auto !important;
}

.mobile-logo-bg {
    display: none !important;
}

.overlay-panel {
    background-image: none !important;
}

.overlay-panel {
    background-image: url('../Images/logo.png') !important;
    background-repeat: repeat !important;
    background-position: center center !important;
    background-size: 40% !important;
}

/* Responsive Footer Styles */
.custom-footer {
    color: #333;
}

.custom-footer a {
    color: #333;
}

@media (max-width: 768px) {
    .custom-footer {
        color: #fff !important;
        background: #080710 !important;
        /* Match mobile background */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .custom-footer a {
        color: #fff !important;
    }

    .custom-footer p {
        color: #fff !important;
    }

    .footer-container {
        padding: 0 20px;
    }
}

/* Password Toggle Styles */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px !important;
    /* Make room for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    z-index: 2;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #457b9d;
}

/* Mobile Adjustments for Password Eye */
@media (max-width: 768px) {
    .mobile-form .password-container input {
        padding-right: 45px !important;
    }

    .mobile-form .toggle-password {
        color: rgba(255, 255, 255, 0.6);
        right: 15px;
    }

    .mobile-form .toggle-password:hover {
        color: #ffffff;
    }
}