/* ========== RESET E BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: url('../img/bg.png') no-repeat center center fixed;
    background-size: cover;
}

/* ========== HEADER FLUTUANTE ========== */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-logo {
    height: 60px;
    width: auto;
}

.login-btn {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-icon {
    font-size: 1.1rem;
}

/* ========== BANNER INICIAL (OVERLAY) ========== */
.banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.9) 0%, rgba(200, 230, 201, 0.9) 50%, rgba(165, 214, 167, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
    padding-top: 0; /* Removido o padding-top agora que não há mais header */
}

.banner-text {
    color: #2e7d32; /* Verde escuro para melhor contraste */
    background-color: rgba(255, 255, 255, 0.85); /* Fundo branco semi-transparente */
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px auto;
    max-width: 40%; /* Alterado para 40% conforme solicitado */
    line-height: 1.6;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-overlay.hide {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeInScale 1s ease-out;
    position: relative;
    z-index: 2;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.banner-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 3rem;
    filter: drop-shadow(0 10px 30px rgba(46, 125, 50, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Novo estilo do botão "CADASTRE-SE AQUI" */
.btn-comecar {
    background: linear-gradient(135deg, #66bb6a 0%, #81c784 100%);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    padding: 1.8rem 5rem;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 
        0 15px 50px rgba(102, 187, 106, 0.6),
        inset 0 -4px 0 rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho que passa pelo botão */
.btn-comecar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-comecar:hover::before {
    left: 100%;
}

/* Efeito hover do botão */
.btn-comecar:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 
        0 20px 60px rgba(102, 187, 106, 0.8),
        inset 0 -4px 0 rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* Efeito ao clicar */
.btn-comecar:active {
    transform: translateY(-4px) scale(1.04);
}

/* Seta do botão */
.btn-arrow {
    font-size: 2.2rem;
    transition: transform 0.4s ease;
    animation: arrowPulse 2s ease-in-out infinite;
}

/* Animação de pulso da seta */
@keyframes arrowPulse {
    0%, 100% { 
        transform: translateX(0); 
    }
    50% { 
        transform: translateX(10px); 
    }
}

/* Seta se move mais ao hover */
.btn-comecar:hover .btn-arrow {
    transform: translateX(15px) scale(1.2);
}

/* Elementos flutuantes decorativos */
.floating-element {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: floatRandom 15s ease-in-out infinite;
    pointer-events: none;
}

.element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

.element-4 {
    bottom: 25%;
    right: 10%;
    animation-delay: 1s;
}

.element-5 {
    top: 50%;
    left: 5%;
    animation-delay: 3s;
}

.element-6 {
    top: 60%;
    right: 8%;
    animation-delay: 5s;
}

@keyframes floatRandom {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(-15px, 15px) rotate(180deg);
    }
    75% {
        transform: translate(15px, 20px) rotate(270deg);
    }
}

/* ========== FUNDO DE PAPEL AMASSADO ========== */
.form-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 2rem; /* Ajustado para 2rem agora que não há mais header */
    position: relative;
}

/* ========== CONTAINER DO FORMULÁRIO ========== */
.form-container {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
    max-width: 800px;
    width: 100%;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    animation: slideUp 0.8s ease-out 0.8s both;
}

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

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.01) 10px, rgba(0, 0, 0, 0.01) 20px);
    border-radius: 30px;
    pointer-events: none;
}

/* ========== HEADER DO FORMULÁRIO ========== */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(46, 125, 50, 0.2));
}

/* ========== FORMULÁRIO ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-hint {
    font-weight: 400;
    color: #558b2f;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #2e7d32;
    background: #fff;
    border: 2px solid #558b2f;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: #7cb342;
    background: #f1f8e9;
    box-shadow: 
        0 0 0 4px rgba(124, 179, 66, 0.15),
        inset 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #9ccc65;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232e7d32' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========== RADIO BUTTONS ========== */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: #fff;
    border: 2px solid #558b2f;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-button:hover {
    background: #f1f8e9;
    border-color: #7cb342;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.2);
}

.radio-button input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #558b2f;
    border-radius: 50%;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.radio-button input[type="radio"]:checked ~ .radio-custom {
    background: #7cb342;
    border-color: #558b2f;
}

.radio-button input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.radio-button input[type="radio"]:checked ~ .radio-text {
    font-weight: 700;
    color: #2e7d32;
}

.radio-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #558b2f;
    transition: all 0.3s ease;
}

/* ========== BOTÃO DE ENVIAR ========== */
.btn-submit {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #66bb6a 0%, #7cb342 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 8px 25px rgba(102, 187, 106, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(102, 187, 106, 0.6),
        inset 0 2px 8px rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #7cb342 0%, #8bc34a 100%);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* ========== RODAPÉ DO FORMULÁRIO ========== */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    height: 150px;
    width: auto;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-divider {
    height: 40px;
    width: 1px;
    background-color: #e0e0e0;
}

/* ========== MODAL DE CONFIRMAÇÃO ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 10% auto;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s ease;
}

.modal-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.modal-icon {
    font-size: 48px;
    color: #4caf50;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body h3 {
    color: #4caf50;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-body p {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.modal-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.btn-modal {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal:hover {
    background: #3d8b40;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .floating-header {
        padding: 0.8rem 1.5rem;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .banner-logo {
        max-width: 400px;
    }
    
    .banner-text {
        max-width: 80%; /* Aumentar para telas menores */
    }

    .btn-comecar {
        font-size: 1.4rem;
        padding: 1.4rem 3rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-logo {
        max-width: 300px;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-button {
        width: 100%;
        justify-content: center;
    }

    .floating-element {
        font-size: 2rem;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-divider {
        height: 1px;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .floating-header {
        padding: 0.6rem 1rem;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .banner-logo {
        max-width: 280px;
    }
    
    .banner-text {
        max-width: 90%; /* Aumentar ainda mais para telas muito pequenas */
        font-size: 14px;
    }

    .btn-comecar {
        font-size: 1.2rem;
        padding: 1.2rem 2rem;
    }

    .form-wrapper {
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .form-logo {
        max-width: 250px;
    }
    
    .footer-logo {
        height: 40px;
    }
}