* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #F0F1F5;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 80px 20px 70px;
}


/* Container */
.container {
    background: #fff;
    border-radius: 16px;
    padding: 32px;

    max-width: 440px;
    width: 100%;

    box-shadow: 0 20px 60px rgba(0,0,0,0.3);

    animation: fadeIn 0.3s ease;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Logo */
.logo {
    text-align: center;
    margin-bottom: 24px;
}


.logo img {
    max-height: 48px;
}


.logo h2 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-top: 8px;
    font-weight: 600;
}


/* Campos */
.form-group {
    margin-bottom: 18px;
}


.form-group label {
    display: block;

    font-size: 0.85rem;
    color: #555;

    margin-bottom: 6px;

    font-weight: 500;
}


.form-group input {

    width: 100%;

    padding: 14px 16px;

    border: 2px solid #e0e0e0;

    border-radius: 10px;

    font-size: 1rem;

    background: #fafafa;

    outline: none;

    transition: .2s;
}


.form-group input:focus {

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37,99,235,.15);

    background:#fff;
}


.form-group input.error {

    border-color:#dc2626;

}


.error-msg {

    color:#dc2626;

    font-size:.8rem;

    margin-top:4px;

    display:none;
}


.error-msg.show {

    display:block;

}


/* Linha */
.row {

    display:flex;

    gap:12px;

}


.row .form-group {

    flex:1;

}


/* Botão */
.btn {

    width:100%;

    padding:16px;

    background:#cc092f;

    color:#fff;

    border:none;

    border-radius:10px;

    font-size:1.05rem;

    font-weight:600;

    cursor:pointer;

}


.btn:hover {

    background:#b9156e;

}


.btn:active {

    transform:scale(.98);

}


/* Texto inferior */
.info-text {

    text-align:center;

    font-size:.8rem;

    color:#888;

    margin-top:16px;

}



/* Loader */
.loader {

    display:none;

    text-align:center;

    margin:12px 0;

}

.spinner {

    display:inline-block;

    width: 70px;
    height: 70px;
    border: 3px solid #e0e0e0;
    border-top-color: #eb2567;

    border-radius:50%;

    animation:spin .8s linear infinite;

}


@keyframes spin {

    to {
        transform:rotate(360deg);
    }

}



/* ==========================
   HEADER FIXO
========================== */

.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: linear-gradient(104deg, #cc092f 0%, #b81570 100%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    z-index: 1000;
    flex-direction: row;
}


/* Logo esquerda */

.header-left img {

    height:36px;

    width:auto;

    object-fit:contain;

}



/* Espaço central controlado */

.header-center {

    width:40px;

}



/* Área direita */

.header-right {

    display:flex;

    align-items:center;

    gap:6px;

}



.header-right img {

    height:32px;

    width:auto;

    object-fit:contain;

}



.header-right span {

    font-size:.95rem;

    font-weight:600;

    color:#fff;

    white-space:nowrap;

}



/* ==========================
   FOOTER FIXO
========================== */


.footer-fixed {

    position:fixed;

    bottom:0;

    left:0;

    width:100%;


    height:45px;


    background:linear-gradient(
        104deg,
        #cc092f 0%,
        #b81570 100%
    );


    display:flex;

    align-items:center;

    justify-content:center;


    box-shadow:0 -2px 8px rgba(0,0,0,.1);


    z-index:1000;

}



.footer-fixed p {

    font-size:.75rem;

    color:#fff;

}



/* ==========================
   MOBILE
========================== */


@media(max-width:600px){


    body {

        padding:65px 12px 55px;

        background:#fff;

    }


    .container {

        padding:24px 16px;

        border-radius:0;

        box-shadow:none;

    }


    .header-fixed {

        height:55px;

        padding:0 12px;

    }


    .header-left img {

        height:30px;

    }


    .header-center {

        width:20px;

    }


    .header-right img {

        height:28px;

    }


    .header-right span {

        font-size:.75rem;

    }


    .footer-fixed {

        height:40px;

    }


    .row {

        flex-direction:column;

        gap:0;

    }


    .form-group input {

        padding:16px;

        font-size:16px;

    }


    .btn {

        padding:18px;

        font-size:1.1rem;

    }

}



/* Tablet */

@media(min-width:481px) and (max-width:768px){


    .container {

        max-width:480px;

        padding:28px;

    }

}



/* PC */

@media(min-width:769px){


    .container {

        max-width:440px;

        padding:40px;

    }


    .container:hover {

        box-shadow:0 25px 70px rgba(0,0,0,.35);

    }

}
