* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #01091a 0%, #0a1a35 100%);
    font-family: "Inter", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Container principal */
.auth-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Cards de alternância */
.auth-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(62, 107, 255, 0.3);
    color: #b0c6ff;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Space Grotesk", sans-serif;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3e6bff, #1a3a8a);
    border-color: #3e6bff;
    color: white;
    box-shadow: 0 10px 30px -10px #3e6bff;
}

.toggle-btn:hover:not(.active) {
    background: rgba(62, 107, 255, 0.2);
    border-color: #3e6bff;
}

/* Cards de formulário */
.auth-card {
    background: rgba(8, 25, 55, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 48px;
    border: 1px solid rgba(62, 107, 255, 0.3);
    padding: 3rem;
    box-shadow: 0 30px 60px -20px #000;
    display: none;
}

.auth-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2.5rem;
    color: white;
    font-family: "Space Grotesk", sans-serif;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #b0c6ff;
    font-size: 1rem;
}

/* Formulário em grid - 3 colunas */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 3;
}

.form-group.half-width {
    grid-column: span 2;
}

label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

label .required {
    color: #ff6b6b;
    margin-left: 3px;
}

input, select, textarea {
    background: rgba(1, 9, 26, 0.6);
    border: 1px solid rgba(62, 107, 255, 0.3);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: "Inter", sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3e6bff;
    box-shadow: 0 0 0 3px rgba(62, 107, 255, 0.2);
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(1, 9, 26, 0.6);
    border: 1px solid rgba(62, 107, 255, 0.3);
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3e6bff;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(1, 9, 26, 0.6);
    border: 1px solid rgba(62, 107, 255, 0.3);
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3e6bff;
}

.checkbox-option label {
    margin: 0;
    cursor: pointer;
}

/* Plano de Assinatura - Cards Estilizados */
.planos-container {
    background: rgba(1, 9, 26, 0.6);
    border: 1px solid rgba(62, 107, 255, 0.3);
    border-radius: 24px;
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.planos-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.planos-title i {
    color: #3e6bff;
    font-size: 1.2rem;
}

.planos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.plano-card {
    background: rgba(8, 25, 55, 0.5);
    border: 2px solid rgba(62, 107, 255, 0.2);
    border-radius: 20px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plano-card:hover {
    border-color: #3e6bff;
    transform: translateY(-2px);
    background: rgba(62, 107, 255, 0.1);
}

.plano-card.selected {
    border-color: #3e6bff;
    background: linear-gradient(135deg, rgba(62, 107, 255, 0.2), rgba(26, 58, 138, 0.3));
    box-shadow: 0 0 20px rgba(62, 107, 255, 0.3);
}

.plano-card.selected::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #3e6bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.plano-nome {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.plano-preco {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3e6bff;
    margin-bottom: 0.3rem;
}

.plano-preco small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #b0c6ff;
}

.plano-descricao {
    font-size: 0.8rem;
    color: #b0c6ff;
}

/* Botões */
.btn-submit {
    background: linear-gradient(135deg, #3e6bff, #1a3a8a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 2rem;
    font-family: "Space Grotesk", sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px #3e6bff;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(62, 107, 255, 0.5);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: rgba(62, 107, 255, 0.2);
    border-color: #3e6bff;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: #b0c6ff;
}

.form-footer a {
    color: #3e6bff;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Mensagens de erro/sucesso */
.message {
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: none;
}

.message.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.message.show {
    display: block;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsividade */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-group.full-width {
        grid-column: span 2;
    }
    .planos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .form-group.half-width {
        grid-column: span 1;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .toggle-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    body {
        padding: 1rem;
    }
}

.formError {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
}
.inputError {
    border-color: #ff6b6b !important;
}
.mt-30 {
    margin-top: 30px;
}
.mb-20 {
    margin-bottom: 20px;
}
.planos-container {
    background: rgba(1, 9, 26, 0.6);
    border: 1px solid rgba(62, 107, 255, 0.3);
    border-radius: 24px;
    padding: 1.5rem;
    margin-top: 0.5rem;
}
.planos-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.planos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.plano-card {
    background: rgba(8, 25, 55, 0.5);
    border: 2px solid rgba(62, 107, 255, 0.2);
    border-radius: 20px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.plano-card:hover {
    border-color: #3e6bff;
    transform: translateY(-2px);
    background: rgba(62, 107, 255, 0.1);
}
.plano-card.selected {
    border-color: #3e6bff;
    background: linear-gradient(135deg, rgba(62, 107, 255, 0.2), rgba(26, 58, 138, 0.3));
    box-shadow: 0 0 20px rgba(62, 107, 255, 0.3);
}
.plano-card.selected::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #3e6bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
.plano-nome {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.plano-preco {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3e6bff;
    margin-bottom: 0.3rem;
}
.plano-preco small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #b0c6ff;
}
.plano-descricao {
    font-size: 0.8rem;
    color: #b0c6ff;
}
.juridica-fields {
    display: none;
}
.juridica-fields.show {
    display: block;
}

/* Notificações personalizadas */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 350px;
}
.notification.success {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}
.notification.error {
    background: linear-gradient(135deg, #ff6b6b, #c92a2a);
}
.notification.warning {
    background: linear-gradient(135deg, #ffa502, #ff6348);
}
.notification.info {
    background: linear-gradient(135deg, #3e6bff, #1a3a8a);
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
@media (max-width: 768px) {
    .planos-grid {
        grid-template-columns: 1fr;
    }
    .notification {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}