:root {
    --primary-color: #50fa7b; /* Neon green */
    --secondary-color: #9333ea; /* Vibrant purple */
    --text-color: #e0e7ff; /* Soft off-white */
    --bg-color: rgba(255, 255, 255, 0.08); /* Glassmorphism background */
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', 'Montserrat', sans-serif; /* Modern fonts */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2027, #2c5364); /* Deep oceanic gradient */
    animation: gradientShift 20s ease infinite;
    color: var(--text-color);
    transition: background 0.5s ease, color 0.5s ease;
}

@keyframes gradientShift {
    0% { background: linear-gradient(135deg, #0f2027, #2c5364); }
    50% { background: linear-gradient(135deg, #203a43, #3b6978); }
    100% { background: linear-gradient(135deg, #0f2027, #2c5364); }
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    animation: slideshow 30s infinite ease-in-out;
    opacity: 0.4;
    filter: blur(4px);
    transition: background-image 1.2s ease-in-out;
}

@keyframes slideshow {
    0% { background-image: url('https://renatorm.com/img/C52.png'); opacity: 0.4; transform: scale(1); }
    25% { background-image: url('https://renatorm.com/img/logorenatorm.png'); opacity: 0.6; transform: scale(1.05); }
    50% { background-image: url('https://renatorm.com/img/logorenatorm.png'); opacity: 0.4; transform: scale(1); }
    75% { background-image: url('https://renatorm.com/img/logorenatorm.png'); opacity: 0.6; transform: scale(1.05); }
    100% { background-image: url('https://renatorm.com/img/logorenatorm.png'); opacity: 0.4; transform: scale(1); }
}


#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    animation: particlePulse 12s ease-in-out infinite;
}

@keyframes particlePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    animation: overlayPulse 15s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.08; }
}

.registro-box {
    background: var(--bg-color);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 70px rgba(80, 250, 123, 0.3);
    position: relative;
    z-index: 3;
    max-width: 450px;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.registro-box:hover {
    transform: translateY(-20px) scale(1.06);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25), 0 0 90px rgba(80, 250, 123, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

h2 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: neon-glow 2s ease-in-out infinite;
    margin-bottom: 30px;
    font-size: 2rem;
}

h2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

h2:hover::before {
    width: 60%;
}

@keyframes neon-glow {
    0% { text-shadow: 0 0 8px rgba(80, 250, 123, 0.9), 0 0 16px rgba(147, 51, 234, 0.7); }
    50% { text-shadow: 0 0 14px rgba(80, 250, 123, 1), 0 0 28px rgba(147, 51, 234, 0.9); }
    100% { text-shadow: 0 0 8px rgba(80, 250, 123, 0.9), 0 0 16px rgba(147, 51, 234, 0.7); }
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-label {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    border-radius: 12px;
    padding: 12px 15px 12px 45px;
    transition: all 0.4s ease;
    font-size: 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(80, 250, 123, 0.5);
    transform: scale(1.02);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
}

.form-control:focus::placeholder {
    color: transparent;
}

.form-group::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.4s ease;
}

.form-group.email::before { content: '\f0e0'; }
.form-group.whatsapp::before { content: '\f232'; }
.form-group.senha::before { content: '\f023'; }
.form-group.nome::before { content: '\f007'; }

.form-control:focus + .form-group::before {
    color: var(--secondary-color);
}

.btn-registrar {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 1;
    color: #fff;
}

.btn-registrar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.btn-registrar:hover::before {
    opacity: 1;
}

.btn-registrar:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(80, 250, 123, 0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    animation: bounceIn 1.2s ease-in-out;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.6rem;
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.social-icon:hover {
    transform: scale(1.15) rotate(8deg);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 10px 25px rgba(80, 250, 123, 0.6);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.25); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.text-center a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    font-size: 0.95rem;
    position: relative;
}

.text-center a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease;
}

.text-center a:hover::after {
    width: 100%;
}

.text-center a:hover {
    color: var(--secondary-color);
}

.alert-danger {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    border-radius: 12px;
    animation: fadeIn 0.5s ease-in;
    font-size: 0.95rem;
    padding: 10px;
}

.alert-success {
    background: rgba(52, 211, 153, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    animation: fadeIn 0.5s ease-in;
    font-size: 0.95rem;
    padding: 10px;
}

.modal-content {
    background: var(--bg-color);
    backdrop-filter: blur(15px);
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-body {
    padding: 25px;
    text-align: center;
    color: var(--text-color);
}

.modal-body .btn-whatsapp {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.modal-body .btn-whatsapp:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(80, 250, 123, 0.5);
}

.already-quoted {
    color: #ff6b6b;
    font-weight: 700;
    animation: neon-glow-error 1.5s ease-in-out infinite;
    margin-top: 15px;
    font-size: 0.95rem;
}

@keyframes neon-glow-error {
    0% { text-shadow: 0 0 8px rgba(255, 107, 107, 0.9), 0 0 16px rgba(255, 107, 107, 0.7); }
    50% { text-shadow: 0 0 12px rgba(255, 107, 107, 1), 0 0 24px rgba(255, 107, 107, 0.9); }
    100% { text-shadow: 0 0 8px rgba(255, 107, 107, 0.9), 0 0 16px rgba(255, 107, 107, 0.7); }
}

@media (max-width: 576px) {
    .registro-box {
        padding: 30px;
        max-width: 95%;
    }
    h2 {
        font-size: 1.7rem;
    }
    .form-control {
        font-size: 0.95rem;
        padding: 10px 12px 10px 40px;
    }
    .btn-registrar {
        font-size: 0.95rem;
        padding: 12px;
    }
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
}