@import url('https://fonts.cdnfonts.com/css/avenir');

/* ===== BASE ===== */
html, body {
    height: 100%;
    overflow: hidden;
}

main, header {
    height: 100%;
}

/* ===== HEADER ===== */
header {
    background-image: radial-gradient(100% 100% at bottom left, #1a2e1a, #1a2e1a00), url('../img/cortina.png'), url('../img/bg.png');
    background-position: center right, center right, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: cover, auto 100%, cover;
    position: relative;
    overflow: hidden;
}

/* ===== LAYOUT ===== */
.conteudo {
    height: 100%;
    display: flex;
    justify-content: space-around;
}

.conteudo .col-md-6 {
    display: flex;
    justify-content: start;
    align-items: end;
    padding: 3rem;
}

/* ===== TITULO ===== */
.titulo-hero {
    font-family: 'Avenir', 'Nunito', sans-serif;
    font-weight: 900;
    color: #ffffff;
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.titulo-hero .destaque {
    color: #c4a060;
}

/* ===== FORMULARIO ===== */
#principal {
    background-color: rgba(26, 46, 26, 0.7);
    padding: 30px 20px;
    position: relative;
    z-index: 2;
    border-radius: 4px;
}

#principal .form-control {
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 2px;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 12px;
    height: 44px;
}

#principal .form-control::placeholder {
    color: #ffffff;
    opacity: 1;
}

#principal .form-control:focus {
    background-color: transparent;
    border-color: #ffffff;
    box-shadow: none;
    color: #ffffff;
}

#principal .btn-warning {
    background-color: #e8681a;
    border: none;
    border-radius: 2px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px;
}

#principal .btn-warning:hover {
    background-color: #cf5a14;
    color: #ffffff;
}

#box-doform {
    height: 100%;
    margin-top: 5rem;
}

/* ===== MOBILE ===== */
@media (max-width: 800px) {
    html, body {
        height: auto;
        overflow-y: auto;
    }

    main, header {
        height: auto;
    }

    .h-100 {
        height: auto !important;
    }

    header {
        background-image: radial-gradient( #1a2e1a91, #1a2e1a91), url('../img/bg.png')  ;
        
        background-position: center, 37%;
        background-size: cover, cover;
        min-height: 100vh;
    }

    .conteudo {
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
    }

    .conteudo .col-md-6 {
        align-items: center;
        justify-content: center;
        padding: 2rem 1.5rem 1rem;
        text-align: center;
    }

    .titulo-hero {
        font-size: clamp(2rem, 8vw, 2.8rem);
        text-align: center;
    }

    #box-doform {
        width: 100%;
        height: auto;
        margin-top: 1rem;
        padding: 0 1.5rem 2rem;
    }

    #principal {
        padding: 24px 16px;
    }
}

/* ===== LOADER ===== */
#loader {
    position: fixed;
    inset: 0;
    background-color: #1a2e1a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #c4a060;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { rotate: 360deg; }
}
