/* ------------------------------
   Google Fonts
   ------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&family=Roboto+Slab:wght@100;200;300;400;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: #410A09;
    font-family: "Source Sans Pro";
    color: #410A09;
}

/* wrapper central */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

/* card branco */
.login-card {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);

    /* ✅ IMPORTANTE: dá altura real ao grid para a coluna direita ter “fundo” */
    min-height: 520px;   /* ajusta ao teu gosto */
    height: 100%;
}

/* coluna esquerda */
.login-left {
    padding: 40px 40px 34px;
}

/* coluna direita (ilustração em background) */
.login-right {
    background-color: #6F1415; /* fallback */
    background-image: url("../img/login.png");
    background-repeat: no-repeat;

    background-position: left 105%;
    
    background-size: auto 105%;

    /* ✅ agora sim, ocupa toda a altura da coluna */
    height: 100%;
    min-height: 0; /* evita conflitos com grid */
    
   



}

/* brand */
.login-brand {
    text-align: left;
    margin-bottom: 26px;
}

.login-logo {
    width: 75px;
    height: auto;
    display: block;
    margin-bottom: 14px;
}

.login-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #410A09;
}

/* form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: block;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #410A09;
    margin-bottom: 8px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(65, 10, 9, 0.25);
    border-radius: 12px;
    outline: none;
    color: #410A09;
    background: #fff;
}

input:focus {
    border-color: #E54419;
    box-shadow: 0 0 0 3px rgba(229, 68, 25, 0.18);
}

/* password com olho */
.password-wrap {
    position: relative;
}

.toggle-pass {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 6px;
    border-radius: 10px;
    color: #410A09;
}

.toggle-pass:hover {
    background: rgba(65, 10, 9, 0.08);
}

/* remember */
.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #410A09;
    margin-top: 2px;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: #E54419;
}

/* botão entrar */
.btn-enter {
    height: 46px;
    border: none;
    border-radius: 12px;
    background: #E54419;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 4px;
}

.btn-enter:hover {
    filter: brightness(0.95);
}

/* ajuda (toggle) */
.help-toggle {
    margin-top: 6px;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: #E54419;
    font-weight: 700;
    font-size: 14px;
}

.help-toggle:hover {
    text-decoration: underline;
}

.help-box {
    display: none;
    font-size: 14px;
    line-height: 1.4;
    color: #410A09;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(65, 10, 9, 0.18);
    background: rgba(229, 68, 25, 0.06);
}

.help-box.is-open {
    display: block;
}

.help-box a {
    color: #E54419;
    font-weight: 700;
    text-decoration: none;
}

.help-box a:hover {
    text-decoration: underline;
}

/* ------------------------------
   RESPONSIVE
   ------------------------------ */
@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1fr;
        height: auto;        /* ✅ no mobile deixa crescer */
        min-height: 0;
    }

    .login-right {
        min-height: 220px;   /* ajusta se quiseres mais alto */
        height: 220px;       /* ✅ garante fundo com “bottom” */
        order: -1;           /* fica por cima no mobile */
        background-position: center bottom;
        background-size: auto 100%;
    }

    .login-left {
        padding: 30px 24px 26px;
    }
}
