/**
 * MhSys SaaS - Onboarding Cadastro Stylesheet
 */
:root {
    --bg-gradient: linear-gradient(135deg, hsl(222, 47%, 9%) 0%, hsl(224, 64%, 5%) 100%);
    --primary: hsl(243, 75%, 59%);
    --primary-hover: hsl(243, 75%, 50%);
    --accent: hsl(171, 75%, 45%);
    --text-main: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 20%, 65%);
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.06);
    --input-bg: rgba(10, 15, 30, 0.6);
    --input-border: rgba(255, 255, 255, 0.08);
    --input-focus: rgba(99, 102, 241, 0.4);
    --glow: rgba(99, 102, 241, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 30px 15px;
    position: relative;
    margin: 0;
}

/* Fundos neon com glow premium */
.bg-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 70%);
    top: -150px;
    left: -150px;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0) 70%);
    bottom: -150px;
    right: -150px;
    z-index: -1;
    pointer-events: none;
}

/* Card principal glassmorphism */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 40px;
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    max-width: 250px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.3));
}

.logo-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Stepper progress bar */
.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.stepper-line-bg {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
    border-radius: 2px;
}

.stepper-line-active {
    position: absolute;
    top: 20px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    z-index: 2;
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.step-node {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 20%;
}

.step-circle {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid var(--input-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.step-node.active .step-circle {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.step-node.completed .step-circle {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
}

.step-title {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-node.active .step-title {
    color: #fff;
}

.step-node.completed .step-title {
    color: var(--accent);
}

/* Mobile step indicators styling */
.mobile-step-header {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: space-between;
}

.mobile-step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.mobile-step-progress {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(20, 184, 166, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

/* Painéis de conteúdo do stepper */
.step-pane {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.step-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Inputs estilizados */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: var(--primary);
}

.form-control, .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--input-focus);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-select option {
    background: #0f172a;
    color: #fff;
}

/* Senha input com toggle */
.password-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: color 0.2s;
    z-index: 5;
}

.password-toggle-btn:hover {
    color: #fff;
}

/* Validação de força de senha */
.password-strength-container {
    margin-top: 8px;
}

.strength-bar-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    gap: 3px;
}

.strength-bar-fill {
    height: 100%;
    flex: 1;
    background: transparent;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.strength-label {
    font-size: 0.75rem;
    margin-top: 4px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Cards de seleção de plano */
.plan-card {
    background: rgba(10, 15, 30, 0.5);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 12px 24px -10px var(--glow);
}

.plan-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.plan-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.plan-price-box {
    margin-bottom: 20px;
}

.plan-price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.plan-price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.plan-features-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features-list li i {
    color: var(--accent);
    font-size: 0.95rem;
}

/* Botões de navegação */
.btn-nav-prev {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-nav-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(-2px);
}

.btn-nav-next {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-nav-submit {
    background: linear-gradient(135deg, var(--accent) 0%, hsl(171, 75%, 38%) 100%);
    border: none;
    color: #fff;
    padding: 12px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-nav-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.5);
    color: #fff;
}

.premium-billing-switcher .billing-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.plan-price {
    transition: opacity 0.2s ease-in-out;
}
