/* Reset e fonte geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(to right, #1D4ED8, #3B82F6);
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-login {
    padding: 10px 20px;
    background: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-login:hover {
    background: white;
    color: #1D4ED8;
}

/* Home Header */
.container-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.container-header p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Botões primários */
.btn-primary {
    padding: 12px 30px;
    background: white;
    color: #1D4ED8;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e0e7ff;
    color: #1E40AF;
}

/* Seções principais */
.section {
    padding: 80px 20px;
    text-align: center;
}

.section:nth-child(even) {
    background-color: #F9FAFB;
}

.section:nth-child(odd) {
    background-color: #F9FAFB;
}

/* Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Títulos */
h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.card p {
    color: #555;
}

/* Vídeo */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Botão secundário */
.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: #1D4ED8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: #2563EB;
}

/* Preço */
.preco {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.img-exemplo {
    width: 100%;
    height: 600px; /* ou outro valor que se adapte bem */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #1E293B;
    color: #cbd5e1;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container-header h1 {
        font-size: 36px;
    }
    .container-header p {
        font-size: 18px;
    }
    h2 {
        font-size: 28px;
    }
}

/* Botões do rodapé */
.btn-footer {
    padding: 10px 30px;
    background: #1D4ED8;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-footer:hover {
    background-color: #2563EB;
}

.cadastro p {
    margin-bottom: 30px;
}

/* Área geral de login */
.register-wrapper, .login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;  /* substituído aqui */
    background: linear-gradient(to right, #1D4ED8, #3B82F6);
    padding: 20px;
}

/* Container login e cadastro */
.login-container, .register-container {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

/* Título da página de cadastro */
.register-container h2 {
    font-size: 32px;
    color: #1D4ED8;
    margin-bottom: 30px;
    text-align: center;
}

/* Formulário geral */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Cada grupo de campo (padrão do Django {{ form.as_p }}) */
form p {
    display: flex;
    flex-direction: row; /* <<< antes era column */
    align-items: center; /* Alinha label e input na mesma linha */
    gap: 10px; /* Espaço entre o label e o input */
    margin-bottom: 12px; /* Espaço entre os campos */
}

/* Labels */
form label {
    min-width: 140px; /* Faz o label ter uma largura fixa */
    text-align: right; /* Alinha o texto à direita */
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Inputs */
form input {
    flex: 1; /* Ocupa o resto da linha */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

/* Botão de login/cadastro */
.btn-login-submit, .btn-register-submit {
    background: #1D4ED8;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login-submit:hover, .btn-register-submit:hover {
    background: #2563EB;
}

/* Mensagem de erro geral */
.error-message {
    color: #d9534f;
    background-color: #f8d7da;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Mensagem de erro de campo individual */
ul.errorlist {
    list-style: none;
    padding: 0;
    margin: 5px 0 10px;
    color: #d9534f;
    font-size: 13px;
    text-align: left;
}

/* Informações abaixo do formulário */
.register-info, .login-links {
    margin-top: 20px;
}

.register-info p, .login-links p {
    font-size: 14px;
    color: #555;
}

.register-info a, .login-links a {
    color: #1D4ED8;
    text-decoration: none;
    font-weight: 500;
}

.register-info a:hover, .login-links a:hover {
    text-decoration: underline;
}

/* Texto de observação */
.note {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .register-wrapper {
        display: block;
        min-height: auto;
        padding: 30px 20px;
        background: linear-gradient(to right, #1D4ED8, #3B82F6);
        overflow-y: auto;
    }

    .register-container {
        margin: 0 auto;
        margin-top: 30px;
        max-width: 90%;
    }

    .register-container h2 {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }

    form p {
        flex-direction: column;
        align-items: flex-start;
    }

    form label {
        min-width: unset;
        text-align: left;
    }

    form {
        gap: 15px;
    }

    form input {
        font-size: 16px;
        padding: 12px;
    }
}

/* Área geral de reset de senha */
.reset-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #1D4ED8, #3B82F6);
    padding: 40px 20px;
    overflow-y: auto;
}

/* Container de reset */
.reset-container {
    background: white;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

/* Título de reset */
.reset-container h2 {
    font-size: 32px;
    color: #1D4ED8;
    margin-bottom: 20px;
}

/* Descrição do reset */
.reset-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

/* Formulário de reset */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

/* Inputs */
form p {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

form label {
    min-width: 140px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

/* Botão de reset */
.btn-reset-submit {
    background: #1D4ED8;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-reset-submit:hover {
    background: #2563EB;
}

/* Links abaixo */
.reset-info {
    margin-top: 20px;
}

.reset-info p {
    font-size: 14px;
    color: #555;
}

.reset-info a {
    color: #1D4ED8;
    text-decoration: none;
    font-weight: 500;
}

.reset-info a:hover {
    text-decoration: underline;
}

/* Responsividade Mobile */
@media (max-width: 600px) {
    .reset-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 30px 20px;
        width: 100%;
    }

    .reset-container {
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        padding: 30px 20px;
    }

    .reset-container h2 {
        font-size: 24px;
    }

    form p {
        flex-direction: column;
        align-items: flex-start;
    }

    form label {
        min-width: unset;
        text-align: left;
    }

    form input {
        font-size: 16px;
    }
}


.error-message {
    background-color: #fdecea;
    color: #d9534f;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

.error-message ul {
    margin-top: 10px;
    list-style-type: disc;
    padding-left: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.field-error {
    color: #d9534f;
    font-size: 13px;
    margin-top: 5px;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px; /* espaço entre label e input */
}

/* Label alinhado */
.form-group label {
    width: 180px; /* largura fixa para os labels */
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

/* Input do form */
.form-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

/* Cabeçalho simples de Planos */
.simple-header {
    background: linear-gradient(to right, #2563EB, #3B82F6);
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    animation: fadeDown 0.8s ease;
}

/* Container principal de planos */
.container-planos {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    text-align: center;
}

/* Título da seção */
.plan-header h1 {
    font-size: 38px;
    color: #2563EB;
    margin-bottom: 10px;
}

.plan-header p {
    font-size: 18px;
    color: #6B7280;
}

/* Cards de planos */
.plans {
    display: grid;
    gap: 20px;
    margin-top: 40px;
    animation: fadeIn 0.8s ease;
    justify-content: center;
}

/* 2 planos por linha em telas maiores */
@media (min-width: 768px) {
    .plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 plano por linha em telas menores */
@media (max-width: 767px) {
    .plans {
        grid-template-columns: 1fr;
    }
}

.plan {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: background 0.3s, transform 0.3s;
    position: relative;
}

.plan:hover {
    background: #E0F2FE;
    transform: translateY(-5px);
}

/* Títulos de cada plano */
.plan h2 {
    font-size: 28px;
    color: #2563EB;
    margin-bottom: 20px;
}

/* Lista de características */
.plan ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 20px;
    color: #374151;
    font-size: 16px;
}

.plan ul li {
    margin-bottom: 10px;
}

/* Preço em verde bonito */
.price {
    font-size: 26px;
    font-weight: bold;
    color: #10B981;
    margin-bottom: 20px;
}

.logo-topo-vendas {
    max-width: 50%;
    flex: 2;
}

/* Botão de assinatura */
.btn-assinar {
    display: inline-block;
    background-color: #2563EB;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.btn-assinar:hover {
    background-color: #1D4ED8;
    transform: translateY(-3px);
}

/* Destaque para melhor plano */
.best-plan {
    border: 2px solid #10B981;
}

.badge-best {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #10B981;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: bold;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
}

.field-error {
    font-size: 13px;
    color: #d9534f;
    margin-top: 4px;
}

.captcha {
    max-height: 60px;
    border-radius: 8px;
}


.footer-info {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 40px;
    font-size: 14px;
    color: #6B7280;
}

.footer-info a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Estilo para telas pequenas */
@media (max-width: 600px) {
    .btn-assinar,
    .btn-assinar.btn-secundario {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}