/* =============================================
   Ekho — Sign-Up V2 (light theme)
   /sign-in-v2 → /post-signup → /payments-v2
   Aligned with /post-signup and ekho-parentes-v2.
   Tokens mirror --bg-base / --ink-* used across the app.
   ============================================= */

/* ---------- Base ---------- */
.v2-body {
    margin: 0;
    background: #FBFAFE;
    font-family: 'DM Sans', 'Inter', 'Segoe UI', Tahoma, sans-serif;
    color: #1d1733;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.v2-signup-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.v2-signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1120px;
    min-height: 640px;
    border-radius: 28px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 20px 60px -16px rgba(29, 23, 51, 0.2);
    border: 1px solid #EDE9FE;
}

/* =============================================
   LEFT PANEL — branding + rotating benefits
   (keeps the purple gradient as the "hero" — white
    text on purple feels premium and branded, and
    contrasts nicely with the light form panel)
   ============================================= */
.v2-brand-panel {
    position: relative;
    padding: 40px 44px;
    background: linear-gradient(135deg, #4F46E5 0%, #C084FC 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 640px;
}

/* Floating orbs */
.v2-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    animation: v2OrbFloat 12s ease-in-out infinite;
}

.v2-orb-1 {
    width: 260px;
    height: 260px;
    background: #C4B5FD;
    top: -60px;
    left: -60px;
    animation-delay: 0s;
}

.v2-orb-2 {
    width: 300px;
    height: 300px;
    background: #E9D5FF;
    bottom: -80px;
    right: -60px;
    animation-delay: -4s;
}

.v2-orb-3 {
    width: 220px;
    height: 220px;
    background: #DDD6FE;
    top: 40%;
    left: 55%;
    animation-delay: -8s;
}

@keyframes v2OrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(25px, -20px) scale(1.08); }
    66%      { transform: translate(-15px, 25px) scale(0.95); }
}

/* Logo header */
.v2-brand-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-brand-logo {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.v2-brand-emoji {
    font-size: 24px;
    transform: rotate(-8deg);
    display: inline-block;
}

/* Carousel */
.v2-carousel {
    position: relative;
    z-index: 2;
    height: 280px;
    margin: 24px 0;
    perspective: 1200px;
}

.v2-card {
    position: absolute;
    inset: 0;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px) rotateX(-8deg);
    transform-origin: center bottom;
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.v2-card.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    pointer-events: auto;
}

.v2-card.exiting {
    opacity: 0;
    transform: translateY(-40px) rotateX(8deg);
}

.v2-card-emoji {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.v2-card-title {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}

.v2-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
    margin: 0 0 22px;
}

.v2-card-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    margin-top: auto;
}

.v2-card-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    transition: width 0.1s linear;
}

.v2-card.active .v2-card-progress-bar {
    animation: v2ProgressFill 4s linear forwards;
}

@keyframes v2ProgressFill {
    from { width: 0; }
    to   { width: 100%; }
}

/* Dots */
.v2-dots {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.v2-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

.v2-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.v2-dot.active {
    width: 36px;
    border-radius: 5px;
    background: #fff;
}

/* Stats */
.v2-stats {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.v2-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.v2-stat strong {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.v2-stat span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* =============================================
   RIGHT PANEL — form (light)
   ============================================= */
.v2-form-panel {
    position: relative;
    padding: 40px 48px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.v2-lang-switcher {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 5;
}

.v2-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #F4F1FA;
    border: 1px solid #E8E4F1;
    border-radius: 999px;
    color: #1d1733;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.v2-lang-btn:hover {
    background: #EDE9FE;
    border-color: #DDD6FE;
}

.v2-lang-btn .flag-emoji {
    font-size: 14px;
}

.v2-lang-chevron {
    width: 12px;
    height: 12px;
    opacity: 0.55;
    color: #4a4264;
}

.v2-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #FFFFFF;
    border: 1px solid #EDE9FE;
    border-radius: 12px;
    padding: 6px;
    display: none;
    box-shadow: 0 12px 30px rgba(29, 23, 51, 0.12);
}

.v2-lang-dropdown.open {
    display: block;
}

.v2-lang-dropdown .language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4a4264;
    transition: background 0.15s, color 0.15s;
}

.v2-lang-dropdown .language-option:hover,
.v2-lang-dropdown .language-option.active {
    background: #F5F3FF;
    color: #6D28D9;
}

/* Form body */
.v2-form-inner {
    margin-top: 56px;
    max-width: 400px;
    width: 100%;
    align-self: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.v2-form-title {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1d1733;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.v2-form-subtitle {
    font-size: 15px;
    color: #4a4264;
    margin: 0 0 28px;
    line-height: 1.5;
}

.v2-form-subtitle strong {
    color: #1d1733;
    font-weight: 700;
}

.v2-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Fields */
.v2-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2-label {
    font-size: 13px;
    font-weight: 600;
    color: #1d1733;
}

.v2-input-wrap {
    position: relative;
}

.v2-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: #FAF9FD;
    border: 1.5px solid #E8E4F1;
    border-radius: 12px;
    font-size: 15px;
    color: #1d1733;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.v2-input::placeholder {
    color: #8b85a3;
}

.v2-input:focus {
    outline: none;
    border-color: #A855F7;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16);
}

.v2-input-wrap .v2-input {
    padding-right: 48px;
}

.v2-eye-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 16px;
    color: #8b85a3;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.v2-eye-toggle:hover {
    background: #F4F1FA;
    color: #6D28D9;
}

.v2-eye-toggle .v2-eye-closed {
    display: none;
}

.v2-eye-toggle.revealed .v2-eye-open {
    display: none;
}

.v2-eye-toggle.revealed .v2-eye-closed {
    display: inline;
}

/* Primary button with shimmer */
.v2-btn-primary {
    position: relative;
    margin-top: 8px;
    padding: 15px 22px;
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
}

.v2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(124, 58, 237, 0.38);
}

.v2-btn-primary:active {
    transform: translateY(0);
}

.v2-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.v2-btn-label {
    position: relative;
    z-index: 2;
}

.v2-btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    animation: v2Shimmer 3s infinite;
}

@keyframes v2Shimmer {
    0%   { left: -60%; }
    100% { left: 160%; }
}

/* Terms note */
.v2-terms-note {
    margin: 2px 0 8px;
    font-size: 12px;
    color: #8b85a3;
    line-height: 1.5;
    text-align: center;
}

.v2-terms-note a {
    color: #6D28D9;
    text-decoration: none;
    font-weight: 500;
}

.v2-terms-note a:hover {
    text-decoration: underline;
}

.v2-terms-content {
    background: #F4F1FA;
    border: 1px solid #E8E4F1;
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    color: #4a4264;
    max-height: 160px;
    overflow-y: auto;
}

/* Separator */
.v2-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: #8b85a3;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v2-separator::before,
.v2-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #EDE9FE;
}

/* Google button */
.v2-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    background: #FFFFFF;
    border: 1.5px solid #E8E4F1;
    border-radius: 14px;
    color: #1d1733;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.v2-btn-google:hover {
    background: #FAF9FD;
    border-color: #DDD6FE;
    color: #1d1733;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(29, 23, 51, 0.08);
}

.v2-google-icon {
    width: 18px;
    height: 18px;
}

/* Login link */
.v2-login-link {
    margin-top: auto;
    padding-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #4a4264;
}

.v2-login-link a {
    color: #6D28D9;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.v2-login-link a:hover {
    text-decoration: underline;
}

/* =============================================
   Full-screen creating-account overlay (light)
   ============================================= */
.v2-creating-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(251, 250, 254, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.35s ease;
    overflow: hidden;
}

.v2-creating-overlay.visible {
    display: flex;
    opacity: 1;
}

.v2-creating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    animation: v2OrbFloat 14s ease-in-out infinite;
}

.v2-creating-orb-1 {
    width: 460px;
    height: 460px;
    background: #C4B5FD;
    top: -180px;
    left: -160px;
}

.v2-creating-orb-2 {
    width: 360px;
    height: 360px;
    background: #FBCFE8;
    bottom: -120px;
    right: -100px;
    animation-delay: -5s;
}

.v2-creating-card {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: calc(100% - 40px);
    padding: 44px 36px 36px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #EDE9FE;
    text-align: center;
    box-shadow: 0 24px 60px rgba(29, 23, 51, 0.15);
}

/* Spinner */
.v2-creating-spinner {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-creating-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid #EDE9FE;
    border-top-color: #A855F7;
    border-right-color: #A855F7;
    animation: v2CreatingSpin 1.1s linear infinite;
}

.v2-creating-logo {
    font-size: 38px;
    animation: v2CreatingPulse 1.8s ease-in-out infinite;
}

@keyframes v2CreatingSpin {
    to { transform: rotate(360deg); }
}

@keyframes v2CreatingPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* Success check */
.v2-creating-check {
    display: none;
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    align-items: center;
    justify-content: center;
}

.v2-creating-overlay.is-done .v2-creating-spinner {
    display: none;
}

.v2-creating-overlay.is-done .v2-creating-check {
    display: flex;
    animation: v2CreatingPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.v2-creating-check svg path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: v2CheckDraw 0.6s ease forwards 0.1s;
}

@keyframes v2CheckDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes v2CreatingPop {
    0%   { transform: scale(0.7); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Title + sub */
.v2-creating-title {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1d1733;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.v2-creating-sub {
    font-size: 14px;
    color: #4a4264;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Rotating steps */
.v2-creating-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.v2-creating-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: #8b85a3;
    background: #FAF9FD;
    border: 1px solid #EDE9FE;
    border-radius: 12px;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.v2-creating-steps li::before {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #EDE9FE;
    border: 1px solid #DDD6FE;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.v2-creating-steps li.active {
    color: #1d1733;
    background: #F5F3FF;
    border-color: #C4B5FD;
}

.v2-creating-steps li.active::before {
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.v2-creating-steps li.done {
    color: #6D28D9;
}

.v2-creating-steps li.done::before {
    content: "✓";
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .v2-signup-wrapper {
        padding: 0;
    }

    .v2-signup-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
        border: none;
    }

    .v2-brand-panel {
        min-height: 420px;
        padding: 32px 28px;
    }

    .v2-form-panel {
        padding: 32px 28px 48px;
    }

    .v2-form-inner {
        margin-top: 48px;
    }

    .v2-carousel {
        height: 240px;
    }

    .v2-card-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .v2-brand-panel {
        padding: 28px 20px;
    }

    .v2-form-panel {
        padding: 28px 20px 40px;
    }

    .v2-form-inner {
        max-width: 100%;
    }

    .v2-card {
        padding: 22px;
    }

    .v2-stat strong {
        font-size: 18px;
    }
}
