/* ==========================================================================
   Login - foto à esquerda (img/login/background.jpg), formulário à direita.
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
    background: #e3e3e3;
}

.login-page {
    display: flex;
    min-height: 100vh;
}

/* Painel da foto ---------------------------------------------------------- */
.login-hero {
    position: relative;
    flex: 0 0 50%;
    background-color: #b3243f;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Centralizado na foto, terminando logo acima da faixa de ícones (~59% da altura). */
.login-hero-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 45%;
    margin: 0 auto;
    padding: 0 24px;
    max-width: 12em;
    text-align: center;
    font-size: clamp(2rem, 3.9vw, 4.25rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
}

/* Painel do formulário ---------------------------------------------------- */
.login-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: #e3e3e3;
}

.login-panel-inner {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-logo {
    width: 124px;
    height: auto;
    margin-bottom: 28px;
}

.login-subtitle {
    max-width: 440px;
    margin: 0 0 20px;
    font-size: clamp(1.15rem, 1.7vw, 1.6rem);
    font-weight: 400;
    line-height: 1.3;
    color: #444;
}

.login-box {
    width: 100%;
    padding: 28px 32px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-label {
    margin: 0 0 8px 8px;
    font-size: 1.15rem;
    color: #222;
}

.login-field {
    position: relative;
    margin-bottom: 18px;
}

.login-field-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 22px;
    height: 28px;
    transform: translateY(-50%);
    opacity: 0.75;
    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 62px;
    padding: 10px 16px 10px 64px;
    border: 1px solid #9a9a9a;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 1.15rem;
    color: #111;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input::placeholder {
    color: #777;
}

.login-input:focus {
    border-color: #c90f43;
    box-shadow: 0 0 0 3px rgba(201, 15, 67, 0.15);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 22px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #222;
    cursor: pointer;
}

.login-remember input {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #c90f43;
    cursor: pointer;
}

.login-forgot {
    font-size: 1.1rem;
    color: #c90f43;
    text-decoration: none;
}

.login-forgot:hover {
    color: #9e0b34;
    text-decoration: underline;
}

.login-submit {
    height: 62px;
    border: none;
    border-radius: 10px;
    background: #c90f43;
    color: #fff;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.login-submit:hover {
    background: #a80c38;
}

.login-submit:focus-visible,
.login-forgot:focus-visible,
.login-remember input:focus-visible {
    outline: 2px solid #c90f43;
    outline-offset: 2px;
}

.login-developed {
    width: 222px;
    max-width: 70%;
    height: auto;
    margin-top: 48px;
}

/* Telas estreitas: some a foto e fica só o formulário. */
@media (max-width: 991.98px) {
    .login-hero {
        display: none;
    }

    .login-panel {
        padding: 24px 16px;
    }

    .login-box {
        padding: 22px 18px;
    }

    .login-input,
    .login-submit {
        height: 52px;
    }

    .login-submit {
        font-size: 1.3rem;
    }
}
