.signup-wizard {
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow: hidden;
    background: #f7f8ff;
}

.signup-wizard::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(800px circle at 30% 10%, rgba(125, 100, 248, 0.10) 0%, transparent 60%),
        radial-gradient(600px circle at 80% 80%, rgba(74, 124, 243, 0.08) 0%, transparent 50%),
        radial-gradient(500px circle at 60% 50%, rgba(255, 79, 216, 0.04) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bgShift {
    0%   { transform: scale(1) translateY(0); }
    100% { transform: scale(1.08) translateY(-30px); }
}
.sw-view-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    background: transparent;
    padding: 20px 16px 40px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.sw-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 32px;
}

.sw-logo {
    font-size: 22px;
    font-weight: 800;
    color: #121212;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.25s ease;
}

.sw-logo:hover {
    color: #4a7cf3;
}

.sw-trust-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7d64f8;
    background: rgba(241, 238, 255, 0.75);
    border: 1px solid rgba(125, 100, 248, 0.15);
    border-radius: 999px;
    padding: 8px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.sw-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0 4px;
}

.sw-hero h1 {
    font-size: clamp(28px, 4.5vw, 48px);
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    color: #0f1020;
}

.sw-hero h1 span {
    background: linear-gradient(90deg, #7d64f8, #4a7cf3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sw-subtitle {
    color: #596380;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.sw-auth-switch {
    margin-bottom: 22px;
    font-size: 15px;
    color: #596380;
}

.sw-auth-switch a {
    color: #4a7cf3;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.sw-auth-switch a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #4a7cf3;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.sw-auth-switch a:hover::after {
    width: 100%;
}

.sw-field-group {
    width: 100%;
    max-width: 440px;
    text-align: left;
    margin-bottom: 1rem;
}

.sw-field-label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 13px;
    color: #1a1f36;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sw-input-field {
    width: 100%;
    border: 1.5px solid #dfe4f5;
    border-radius: 14px;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    color: #1a1f36;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.sw-input-field:focus {
    border-color: #7d64f8;
    box-shadow:
        0 0 0 4px rgba(125, 100, 248, 0.10),
        0 4px 12px rgba(125, 100, 248, 0.08);
}

.sw-input-field::placeholder {
    color: #9da4be;
}
.sw-btn-primary,
.sw-google-continue-btn {
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
}

.sw-btn-primary {
    margin-top: 14px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #7d64f8, #4a7cf3);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    box-shadow:
        0 8px 24px rgba(125, 100, 248, 0.25),
        0 2px 6px rgba(74, 124, 243, 0.15);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.sw-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4a7cf3, #7d64f8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(125, 100, 248, 0.30),
        0 4px 10px rgba(74, 124, 243, 0.20);
}

.sw-btn-primary:hover::before {
    opacity: 1;
}

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

.sw-email-form-shell {
    width: 100%;
    max-width: 620px;
}
.sw-google-continue-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1.5px solid #d5dbf7;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 15px;
    color: #1a1f36;
    transition: all 0.25s ease;
}

.sw-google-continue-btn:hover {
    background: #f9f9ff;
    border-color: #b0a0f8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.sw-or-divider {
    font-size: 12px;
    color: #7a8298;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sw-or-divider::before,
.sw-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e6f4;
}
.sw-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 13px;
    color: #505a74;
    margin-top: 12px;
    line-height: 1.5;
}

.sw-consent-row input[type="checkbox"] {
    accent-color: #7d64f8;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.sw-error-text {
    display: none;
    color: #d43654;
    font-size: 13px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(212, 54, 84, 0.06);
    border-radius: 10px;
    border-left: 3px solid #d43654;
}

.sw-shake {
    animation: swShake 0.4s ease;
}

@keyframes swShake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}
@media (max-width: 767.98px) {
    .signup-wizard {
        padding: 10px;
    }

    .sw-view-container {
        padding: 12px 8px 32px;
    }

    .sw-btn-primary {
        width: 100%;
    }

    .sw-nav {
        margin-bottom: 20px;
    }

    .sw-hero {
        padding: 4px 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .signup-wizard::before {
        animation: none;
    }

    
    .sw-btn-primary,
    .sw-google-continue-btn {
        transition: none;
    }
}

.sw-btn-primary:focus-visible,
.sw-google-continue-btn:focus-visible {
    outline: 3px solid #7d64f8;
    outline-offset: 2px;
}
