/* DNA GESTOR - Cadastro em etapas (Criar conta → Plano → Teste grátis) */

body.register-steps {
    /* Mesmo fundo fixo: azul com amarelo suave (sem piscar) */
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 45%, #42a5f5 75%, #e8f4fc 90%, #fffde7 100%);
    min-height: 100vh;
    padding: max(12px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
}
body.auth-page.register-steps {
    background: transparent;
}

.register-wrap {
    max-width: 520px;
    margin: 0 auto;
}

/* Etapa 3: centralizar e destacar "Experimente X Dias Grátis" */
.register-step3-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 75vh;
}
.register-step3-wrap .register-card {
    margin: 0 auto;
    width: 100%;
}
.register-step-trial .trial-hero {
    text-align: center;
    margin-bottom: 1.25rem;
}
.register-step-trial .register-title-trial {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 2px solid rgba(102, 126, 234, 0.25);
}
.register-step-trial .trial-hero .register-subtitle {
    margin-bottom: 0;
}

.register-brand {
    text-align: center;
    padding: 12px 0 16px;
}
.register-brand .register-logo-img {
    max-height: 100px;
    max-width: 240px;
    object-fit: contain;
}
.register-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: rgba(255,255,255,0.25);
    border-radius: 16px;
    color: #fff;
    font-size: 2.75rem;
    margin: 0 auto;
    vertical-align: middle;
}
.register-brand strong { color: #fff; font-size: 1.25rem; }

/* Barra de progresso */
.register-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.register-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}
.register-progress-bar .fill {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.register-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.register-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e3a59;
    margin-bottom: 4px;
}
.register-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 16px;
}

.register-trial-banner {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2e3a59;
    padding: 8px 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.register-form .form-label { font-size: 13px; color: #444; }
.register-form .form-control {
    height: 46px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}
.register-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.input-group-register { position: relative; }
.input-group-register .input-group-text {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    z-index: 5;
}

.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 10px;
    height: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-register:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.register-login-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #6c757d;
}
.register-login-link a { color: #667eea; font-weight: 500; }

/* Cards de plano */
.plans-list { margin-bottom: 20px; }
.plan-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.plan-card:hover { border-color: #667eea; }
.plan-card.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.plan-card.recommended { border-left: 4px solid #28a745; }
.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.plan-name { font-size: 1.15rem; font-weight: 700; color: #2e3a59; margin: 0; }
.plan-badge {
    font-size: 10px;
    background: #fd7e14;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}
.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}
.plan-price small { font-size: 0.9rem; color: #6c757d; font-weight: 500; }
.plan-trial-box {
    background: rgba(40, 167, 69, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #155724;
    margin-bottom: 10px;
}
.plan-benefits-toggle { margin-bottom: 8px; }
.plan-benefits-toggle .toggle-benefits {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
}
.plan-benefits-toggle .toggle-benefits:hover { color: #764ba2; }
.plan-benefits {
    font-size: 13px;
    color: #5a5c69;
    padding: 10px 0 0;
    line-height: 1.5;
}
.plan-benefits.collapse:not(.show) { display: none; }
.plan-benefits.collapse.show { display: block; }

/* Benefícios organizados: um embaixo do outro, como no painel admin */
.plan-benefits-content { text-align: left; }
.plan-benefits-content p { margin-bottom: 0.5rem; }
.plan-benefits-content p:last-child { margin-bottom: 0; }
.plan-benefits-content ul,
.plan-benefits-content ol { padding-left: 1.25rem; margin-bottom: 0.5rem; list-style: none; }
.plan-benefits-content ul li,
.plan-benefits-content ol li { margin-bottom: 0.35rem; position: relative; padding-left: 0.5rem; }
.plan-benefits-content ul li::before { content: "✓"; color: #28a745; font-weight: bold; margin-right: 6px; position: absolute; left: -1rem; }
.plan-benefits-content ol li { list-style: decimal; list-style-position: outside; }
.plan-benefits-content strong,
.plan-benefits-content b { font-weight: 600; color: #2e3a59; }

.register-step-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.register-step-actions .btn { flex: 1; height: 48px; border-radius: 10px; font-weight: 600; }
.register-step-actions .btn-outline-secondary { border: 2px solid #dee2e6; }

/* Etapa 3 - Resumo trial */
.trial-assurances {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.trial-assurances li { margin-bottom: 8px; font-size: 14px; color: #5a5c69; }
.trial-summary-plan {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.trial-confirm-box {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #155724;
    margin-bottom: 20px;
}

.register-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

@media (min-width: 768px) {
    .register-wrap { max-width: 560px; }
    .register-card { padding: 28px 28px; }
}
