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

html {
    height: 100%;
    height: 100dvh;
}

body {
    font-family: var(--font-primary);
    background: white;
    height: 100%;
    height: 100dvh;
    position: relative;
}

:root {
    --shape-offset-x: -15rem;
    --logo-offset-x: -5rem;
    --logo-offset-y: -20rem;
    --mobile-logo-top: 2rem;
    --base-color: #5C4DFF;
}

.main-content {
    max-width: 82.063rem;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.shape-desktop {
    position: absolute;
    z-index: -1;
    left: calc(50% + var(--shape-offset-x));
    transform: translateX(-50%);
}

.shape-desktop img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.shape-mobile {
    position: absolute;
    top: env(safe-area-inset-top, 0);
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.shape-mobile img {
    display: block;
    width: 18rem;
    mix-blend-mode: multiply;
}

.shape-spacer-mobile {
    display: none;
}

.logo {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-mobile {
    position: absolute;
    z-index: 1;
    top: calc(3rem + env(safe-area-inset-top, 0));
    left: calc(3.5rem + env(safe-area-inset-left, 0));
    pointer-events: none;
}

.logo-mobile img {
    width: 11.5rem;
}

.logo-desktop {
    z-index: 11;
    margin-top: 10rem;
}

.logo-desktop img {
    max-width: 23.952rem;
    max-height: 17.26rem;
}

.card-container {
    margin: 0 auto;
    max-width: 37.5rem;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 0.01rem;
}
.authLoginForm {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.auth-card {
    background: white;
    border-radius: 2rem;
    box-shadow: 0 1px 20px 0 #3A3A3A33;
    padding: 2.5rem;
    border: none;
    width: 37.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.auth-title {
    color: #5C4DFF;
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.7rem;
    margin-top: 1.2rem;
}

.auth-subtitle {
    color: #3A3A3A;
    font-size: 1.125rem;
}

.authBackBtn {
    position: relative;
    left: 17rem;
    top: -40rem;
    border-radius: 50%;
    border: 1px solid #3A3A3A33;
    padding: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: calc(1.4rem + 1.4rem);
    height: calc(1.4rem + 1.4rem);
    min-width: calc(1.4rem + 1.4rem);
    min-height: calc(1.4rem + 1.4rem);
}



.form-control {
    border: 1px solid #3A3A3A33;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #5C4DFF;
    box-shadow: 0 0 0 0.188rem rgba(14, 165, 233, 0.1);
}

.form-control::placeholder {
    color: #3A3A3A99;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #685bf5 0%, var(--base-color) 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s;
    width: 100%;
}

.btn-google {
    background: #5C4DFF26 !important;
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem;
    font-family: 'Rubik', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-800) !important;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.google-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
}

.footer-text {
    text-align: center;
    color: #3A3A3A;
    font-size: 1rem;
    margin: 1.5rem 0;
}

.footer-text a {
    color: #5C4DFF;
    text-decoration: none;
    font-weight: var(--font-weight-medium);

}

.footer-text-separator {
    margin: 0 0.5rem;
    color: #5C4DFF;
}

@media (max-width: 61.938rem) {
    .footer-text {
        display: inline-block;
        text-align: right;
        margin: 0;
    }
    .footer-text-mobile-mode {
        display: flex;
        text-align: right;
        align-items: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    .footer-text-mobile-mode a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.7rem;
        width: 100%;
    }
    .footer-text-separator {
        display: none;
    }
    .auth-title {
        font-size: 1.125rem;
        font-weight: var(--font-weight-medium);
    }
    .auth-subtitle {
        font-size: 0.875rem;
        font-weight: var(--font-weight-normal);
    }
}
.resendOtpCode {
    display: inline-block;
    font-size: 0.875rem;
    margin: 0;
    background-color: #5C4DFF;
    text-decoration: none;
    font-weight: 500;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

#timer-text.text-left {
    text-align: left !important;
}

#timer-text.text-right {
    text-align: right !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@media (max-width: 61.938rem) {
    .shape-desktop, .authBackBtn, .logo-desktop {
        display: none;
    }

    .container-fluid {
        padding: 0;
        margin: 0;
        --bs-gutter-x: 0;
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        position: relative;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .box-body {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        position: relative;
    }

    .main-content {
        position: relative;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .shape-mobile {
        position: absolute;
        top: env(safe-area-inset-top, 0);
        left: 0;
        z-index: 0;
        pointer-events: none;
    }

    .logo-mobile {
        position: absolute;
        z-index: 1;
        top: calc(2rem + env(safe-area-inset-top, 0));
        left: calc(3.5rem + env(safe-area-inset-left, 0));
        pointer-events: none;
    }

    .shape-spacer-mobile {
        display: block;
        height: 16rem;
        width: 100%;
        flex-shrink: 0;
        pointer-events: none;
    }

    .auth-card {
        padding: 0 1.5rem;
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0));
        margin-top: 0;
        background: rgba(255, 255, 255, 0);
        border-radius: 0;
        box-shadow: none;
        border: none;
        width: 100%;
        gap: 2rem;
        overflow: visible;
        position: relative;
        z-index: 1;
        flex-shrink: 0;
        min-height: fit-content;
    }

    .card-container {
        margin: 0;
        max-width: 100%;
        width: 100%;
        position: relative;
        z-index: 1;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-top: 0;
    }
}

@media (min-width: 62rem) {
    .shape-mobile, .logo-mobile, .shape-spacer-mobile {
        display: none;
    }
    .body , .html {
        overflow: hidden;
    }
}
