.ls-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.ls-modal-overlay[hidden],
.ls-auth-view[hidden],
.ls-login-success-view[hidden],
.ls-success-msg[hidden],
.ls-auth-challenge[hidden],
.spinner[hidden],
form[hidden] {
    display: none !important;
}

.ls-modal-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 850px;
    max-width: 95%;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: lsSlideDown 0.3s ease-out;
}

.ls-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 100;
    padding: 0;
    font-size: 32px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: 0;
}

.ls-modal-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    color: #fff;
    background-image: url("https://images.unsplash.com/photo-1546514714-df0b2df7c20c?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80");
    background-position: center;
    background-size: cover;
}

.ls-modal-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.ls-image-text {
    position: relative;
    z-index: 2;
}

.ls-image-text h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.ls-image-text p {
    margin: 10px 0 0;
    font-size: 16px;
    color: #fff;
    opacity: 0.9;
}

.ls-modal-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.ls-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 800;
    color: #333;
}

.ls-auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.ls-tab-btn {
    padding: 10px 0;
    margin-bottom: -2px;
    font-size: 16px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.ls-tab-btn.active {
    color: #8c52ff;
    border-bottom-color: #8c52ff;
}

.ls-input-group {
    margin-bottom: 15px;
    text-align: left;
}

.ls-input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}

.ls-input-group input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ls-input-group input:focus {
    background: #fff;
    border-color: #8c52ff;
    outline: none;
}

.ls-signup-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ls-login-btn {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: #8c52ff;
    border: 0;
    border-radius: 8px;
}

.ls-login-btn:hover {
    background: #7000e2;
}

.ls-login-btn:disabled,
.ls-social-btn:disabled,
.ls-social-btn.is-loading {
    cursor: default;
    opacity: 0.7;
}

.ls-social-divider {
    height: 10px;
    margin: 25px 0 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.ls-social-divider span {
    padding: 0 10px;
    font-size: 12px;
    color: #999;
    background: #fff;
}

.ls-social-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ls-social-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: 0.2s;
}

.ls-social-btn:hover {
    color: #7000e2;
    background: #f3e8ff;
    border-color: #8c52ff;
}

.ls-social-btn:hover svg path {
    fill: #7000e2;
}

.ls-social-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.ls-btn-success {
    color: #fff !important;
    cursor: default;
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    opacity: 1 !important;
}

.ls-btn-success-icon {
    margin-right: 6px;
}

.ls-login-success-view {
    padding: 40px 0;
    text-align: center;
}

.ls-login-success-view h3 {
    margin: 20px 0 10px;
    color: #10b981;
}

.ls-login-success-view p {
    color: #6b7280;
}

.ls-success-icon-anim {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.ls-checkmark-circle {
    fill: none;
    stroke: #10b981;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-miterlimit: 10;
    stroke-width: 2;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ls-checkmark-check {
    fill: none;
    stroke: #10b981;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    transform-origin: 50% 50%;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.ls-otp-input {
    font-size: 24px !important;
    font-weight: 700;
    text-align: center;
    letter-spacing: 8px;
}

.ls-error-msg {
    display: none;
    padding: 10px;
    margin-top: 20px;
    font-size: 13px;
    color: #dc2626;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.ls-error-msg.is-visible {
    display: block;
}

.ls-success-msg {
    margin-top: 15px;
    color: green;
    text-align: center;
}

.ls-auth-challenge {
    padding: 14px;
    margin-top: 18px;
    text-align: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.ls-auth-challenge__message {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ls-auth-challenge__widget {
    display: flex;
    justify-content: center;
    min-height: 65px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes lsSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@media (max-width: 768px) {
    .ls-modal-container {
        grid-template-columns: 1fr;
    }

    .ls-modal-image {
        display: none;
    }

    .ls-signup-name-grid {
        grid-template-columns: 1fr;
    }
}
