@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;    
}
:root {
--cor-primaria: #2563eb;
--cor-secundaria: #f1f5f9;
--cor-texto: #0f172a;
--cor-borda: #cbd5e1;
}


body {
margin: 0;
background: #6d28d9;
color: var(--cor-texto);
}

.form-control {
    border: 0.1mm solid #c1c1c1;
    padding: 2px;
    border-radius: 4px;
}

header {
background: white;
color: #fff;
padding: 15px 20px;
}


.header-container {
max-width: 900px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 15px;
}


.logo-empresa {
width: 250px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}


.logo-empresa img {
max-width: 100%;
max-height: 100%;
}


header h1 {
margin: 0;
font-size: 22px;
}


main.cliente-form {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

main.login-form {
    max-width: 40%;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

form {
    display: grid;
    grid-template-columns: 1fr; /* apenas 1 coluna */
    gap: 16px;
}



.campo {
display: flex;
flex-direction: column;
}


.campo label {
font-weight: bold;
margin-bottom: 6px;
}

/* ===== Cabeçalhos de seção ===== */
.form-section {
    grid-column: 1 / -1;
    margin: 30px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.form-section h2 {
    font-size: 20px;
    color: #2563eb;
    margin: 0;
}

/* ===== Subtítulos / avisos ===== */
.form-alert {
    grid-column: 1 / -1;
    background: #f8fafc;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0 20px;
}

.form-alert h5 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.6;
    color: #334155;
}

.form-alert strong {
    color: #111827;
}

/* ===== Espaçamento visual entre blocos ===== */
.form-spacer {
    grid-column: 1 / -1;
    height: 20px;
}

/* ===== Ajustes mobile ===== */
@media (max-width: 700px) {
    .form-section h2 {
        font-size: 18px;
    }

    .form-alert h5 {
        font-size: 13px;
    }
}

/* From Uiverse.io by cssbuttons-io */ 
button {
 position: relative;
 border: none;
 background: transparent;
 padding: 0;
 cursor: pointer;
 outline-offset: 4px;
 transition: filter 250ms;
 user-select: none;
 touch-action: manipulation;
}

.shadow {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 border-radius: 12px;
 background: hsl(0deg 0% 0% / 0.25);
 will-change: transform;
 transform: translateY(2px);
 transition: transform
    600ms
    cubic-bezier(.3, .7, .4, 1);
}

.edge {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 border-radius: 12px;
 background: linear-gradient(
    to left,
    hsl(340deg 100% 16%) 0%,
    hsl(340deg 100% 32%) 8%,
    hsl(340deg 100% 32%) 92%,
    hsl(340deg 100% 16%) 100%
  );
}

.front {
 display: block;
 position: relative;
 padding: 12px 27px;
 border-radius: 12px;
 font-size: 1.1rem;
 color: white;
 background: hsl(345deg 100% 47%);
 will-change: transform;
 transform: translateY(-4px);
 transition: transform
    600ms
    cubic-bezier(.3, .7, .4, 1);
}

button:hover {
 filter: brightness(110%);
}

button:hover .front {
 transform: translateY(-6px);
 transition: transform
    250ms
    cubic-bezier(.3, .7, .4, 1.5);
}

button:active .front {
 transform: translateY(-2px);
 transition: transform 34ms;
}

button:hover .shadow {
 transform: translateY(4px);
 transition: transform
    250ms
    cubic-bezier(.3, .7, .4, 1.5);
}

button:active .shadow {
 transform: translateY(1px);
 transition: transform 34ms;
}

button:focus:not(:focus-visible) {
 outline: none;
}

footer { 
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
}

.invalid-feedback { 
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

.login-box { 
    margin: 0 auto;
    text-align: center;
}

label {
    text-align: left;
}

@media (max-width: 900px) {

    main.cliente-form {
        margin: 20px;
        padding: 25px;
    }

    .header-container {
        justify-content: center;
    }
}

/* ========================= */
/* MOBILE (até 600px) */
/* ========================= */
@media (max-width: 600px) {

    body {
        background: #6d28d9;
    }

    header {
        padding: 12px;
        text-align: center;
    }

    .form-alert {
        padding: 12px;
    }

    input,
    select {
        font-size: 16px; /* evita zoom automático no iOS */
        width: 99%;
    }

    .logo-empresa {
        max-width: 180px;
        margin: 0 auto;
    }

    main.cliente-form,
    main.login-form {
        width: auto;
        max-width: 100%;
        margin: 12px;
        padding: 18px;
    }

    .form-section h2 {
        font-size: 17px;
    }

    .campo label {
        font-size: 14px;
    }

    .form-alert h5 {
        font-size: 13px;
        line-height: 1.5;
    }

    .front {
        font-size: 1rem;
        padding: 10px 22px;
    }

    footer {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* ========================= */
/* TELAS MUITO PEQUENAS */
/* ========================= */
@media (max-width: 360px) {

    .form-section h2 {
        font-size: 16px;
    }

    .logo-empresa {
        max-width: 150px;
    }
}