/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Main Wrapper - Replaces body styling */
.gv-reg-wrapper {
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 40px 20px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.gv-reg-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Reset for elements inside wrapper */
.gv-reg-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.gv-reg-wrapper h1 {
    font-size: 2em;
    color: #fff;
}

.gv-reg-container {
    backdrop-filter: blur(26px);
    background-color: rgba(17, 25, 40, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    width: 50em;
    max-width: 100%;
    min-height: 32em;
    z-index: 1;
}

.gv-reg-container p {
    font-size: 0.75em;
    line-height: 1.5em;
    letter-spacing: 0.02em;
    margin: 1.5em 0;
    color: #fff;
}

.gv-reg-container span {
    font-size: 12px;
    color: #ddd;
}

.gv-reg-container a {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.gv-reg-container button {
    color: #fff;
    font-size: 0.8em;
    padding: 1em 3em 0.60em 3em;
    border: 0.01em solid #00000000;
    border-radius: 2em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gv-reg-container button:hover {
    opacity: 0.9;
}

.gv-reg-container button.gv-hidden {
    background-color: transparent;
    border-color: #fff;
}

.gv-reg-container form {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
}

.gv-tab-content {
    padding: 0 !important;
}

.gv-reg-container input {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0;
    /* Added left padding 45px to prevent text clipping into the icon */
    padding: 0.7em 0.9em 0.7em 45px;
    font-size: 0.9em;
    border-radius: 2em;
    width: 100%;
    height: 3em;
    outline: none;
    color: #fff;
    transition: all 0.3s ease;
    letter-spacing: 0.07em;
}

.gv-reg-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.gv-reg-container input:focus {
    /* Made background explicitly whiter on focus per user request */
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Override Browser Autofill Glare */
.gv-reg-container input:-webkit-autofill,
.gv-reg-container input:-webkit-autofill:hover,
.gv-reg-container input:-webkit-autofill:focus,
.gv-reg-container input:-webkit-autofill:active {
    /* Use a dark inset shadow to paint the background (rgba fallback for older browsers) */
    -webkit-box-shadow: 0 0 0 30px #444 inset !important;
    /* Maintain the padding and ensure the text color stays white */
    -webkit-text-fill-color: #fff !important;
    letter-spacing: 0.07em !important;
    transition: background-color 5000s ease-in-out 0s;
}

.gv-checkbox-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 0 0.6em 0.3em;
}

.gv-checkbox-wrap label {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.8em;
    font-weight: 400;
    cursor: pointer;
}

.gv-checkbox-wrap input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    cursor: pointer;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    border: none !important;
    background-color: transparent !important;
}

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

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

.gv-reg-container.gv-active .gv-sign-in {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

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

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

@keyframes gv-move {

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

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

.gv-social-icons {
    margin: 20px 0;
}

.gv-social-icons a {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    width: 40px;
    height: 40px;
    color: #fff;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.gv-social-icons a:hover {
    background-color: #512da8;
    color: #fff;
    border-color: #512da8;
}

.gv-toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 150px 0 0 100px;
    z-index: 1000;
    border: none;
    box-shadow: -0.5em 0 1.3em rgb(0 0 0 / 35%);
}

.gv-reg-container.gv-active .gv-toggle-container {
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
    box-shadow: 0.5em 0 1.3em rgb(0 0 0 / 35%);
}

.gv-toggle {
    background-color: #512da8;
    height: 100%;
    background: linear-gradient(180deg, #0d1631, #341c76);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.gv-reg-container.gv-active .gv-toggle {
    transform: translateX(50%);
}

.gv-toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.gv-toggle-left {
    transform: translateX(-200%);
}

.gv-reg-container.gv-active .gv-toggle-left {
    transform: translateX(0);
}

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

.gv-toggle-panel h1,
.gv-toggle-panel p,
.gv-toggle-panel button {
    position: relative;
    z-index: 10;
}

.gv-panel-content-glass-right {
    position: relative;
    align-self: self-end;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgb(21 25 35 / 23%);
    backdrop-filter: blur(0.2em);
    -webkit-backdrop-filter: blur(0.2em);
    padding: 1em;
    border-radius: 5em 5em 1.5em 5em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* box-shadow: 0 1em 30px rgba(0, 0, 0, 0.5); */
    margin-bottom: 2em;
}

.gv-panel-content-glass-left {
    position: relative;
    align-self: flex-end;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;
    margin-bottom: 2em;
}

.gv-panel-bg-lottie {
    position: absolute;
    top: 39%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.gv-toggle-panel h1 {
    color: #fff;
}

.gv-reg-container.gv-active .gv-toggle-right {
    transform: translateX(200%);
}

/* --- LOGIN TABS & UI --- */
.gv-login-wrapper {
    width: 100%;
    height: 100%;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
}

.gv-login-wrapper h1 {
    text-align: center;
    font-size: 2em;
    margin: 0em 0em 0.5em;
    font-weight: 700;
}

/* Tabs Header */
.gv-login-tabs-header {
    display: flex;
    position: relative;
    /* Flush left alignment */
    margin-left: 0;
    align-self: flex-start;
}

.gv-tab-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    /* Removed fixed 100px width. Controlled by Javascript. */
    height: 100%;
    background: rgb(48 48 48 / 35%);
    border-radius: 1em 1em 0 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.gv-tab-slider::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -15px;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at top left, transparent 14.5px, rgb(48 48 48 / 35%) 15px);
    transition: opacity 0.1s ease;
    opacity: 1;
}

/* Hide left curve smoothly when Email is active and flush left, and set exact width per user */
.gv-tab-slider.gv-email-active {
    width: 8.2em !important;
}

.gv-tab-slider.gv-email-active::before {
    opacity: 0;
}

.gv-tab-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -15px;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at top right, transparent 14.5px, rgb(48 48 48 / 35%) 15px);
}

/* Removed hardcoded CSS transform for .gv-phone-active (JS handles it dynamically) */

.gv-reg-container .gv-tab-btn {
    background: transparent !important;
    border: none;
    color: #fff;
    padding: 0.7em 1.7em 0.4em 1.7em;
    margin: 0;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 1em 1em 0 0;
    transition: all 0.3s ease;
    opacity: 0.6;
    position: relative;
    top: 0;
    z-index: 10;
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
}

.gv-reg-container .gv-tab-btn.gv-active {
    opacity: 1;
}

/* Tabs Body */
.gv-login-tabs-body {
    background: rgb(48 48 48 / 35%);
    border-radius: 1em;
    padding: 1.5em 1.2em 0em 1.2em;
    width: 100%;
    margin-bottom: 0.2em;
    position: relative;
    z-index: 5;
    overflow: hidden;
    transition: border-radius 0.5s ease;
}

/* Make body top-left square when First Tab (Email) is active */
.gv-login-tabs-body.gv-email-active {
    border-top-left-radius: 0;
    transition: border-radius 0.1s linear 0.1s;
}



/* Input Groups */
.gv-input-group {
    position: relative;
    width: 100%;
    margin-bottom: 1.5em;
}

/* Base Input Labels - Centered inside input disabled */
.gv-input-label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
    border-radius: 2em;
    pointer-events: none;
    /* Smooth all transitions so background color fades out while keeping the pill shape */
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0.07em 1em !important;
    /* Or whatever values you want it to shrink down to */
    line-height: normal;

}

/* Floating Pill State */
.gv-input-group input:not(:placeholder-shown)~.gv-input-label {
    top: 0;
    left: 4em;
    transform: translateY(-50%);
    background: #fff;
    color: #1a1a1a;
    font-size: 0.7em;
    font-weight: 700;
    padding: 0.07em 1em;
    border-radius: 2em;
    letter-spacing: 0.06em;
    text-transform: none;
    line-height: normal;
}

/* Red Asterisk inside Pill for Required Fields */
.gv-input-group input[required]~.gv-input-label::after {
    content: " *";
    color: #ff4d4d;
    display: inline-block;
}

/* Input Icons */
.gv-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animate Icon on Focus/Active */
.gv-input-group input:not(:placeholder-shown)~.gv-input-icon {
    color: #fff;
    transform: translateY(-50%) scale(1.15);
}

/* Password Visibility Toggle */
.gv-password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease-out;
    z-index: 10;
}

.gv-password-toggle:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.15);
}

.gv-password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.gv-tab-content {
    display: none !important;
    flex-direction: column;
    width: 100%;
}

.gv-tab-content.gv-active {
    display: flex !important;
    animation: gv-fade-in 0.3s ease forwards;
}

/* Tab Content Fade Animation */
@keyframes gv-fade-in {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Links */
.gv-form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: -0.7em;
    margin-bottom: 0.5em;
}

.gv-form-links a {
    font-size: 11px;
    color: #ddd;
    margin: 0;
}

.gv-form-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Main Login Button */
.gv-main-btn-wrap {
    width: 100%;
    margin-bottom: 1.2em;
    font-size: 1.2em;
}

.gv-main-btn {
    width: 100%;
    height: clamp(38px, 6vw, 42px) !important;
    font-size: 1em !important;
    padding: 0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Social Login Section */
.gv-social-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.gv-social-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.gv-social-btn-wrap {
    flex: 1;
    font-size: 1.1em;
}

.gv-social-btn-wrap.gv-full {
    width: 100%;
    flex: none;
}

.gv-social-btn {
    width: 100%;
    height: clamp(38px, 6vw, 42px) !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    font-size: clamp(0.55em, 2vw, 0.7em) !important;
    font-weight: 500;
    margin: 0 !important;
    text-decoration: none !important;
    line-height: 1.1;
    white-space: normal;
}

.gv-social-btn.gv-full {
    justify-content: center;
}

.gv-social-btn>span {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.gv-social-btn>span>span:not(.gv-circle-icon) {
    white-space: normal;
    text-align: left;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    box-sizing: border-box;
}

.gv-social-btn.gv-full>span {
    justify-content: center;
}

.gv-circle-icon {
    background: transparent;
    width: 2em;
    height: 2em;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    margin-right: 0.8em;
    font-size: 1em;
    overflow: hidden;
}

.gv-circle-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}