/* =========================
   CONFIGURAÇÕES GERAIS
========================= */

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;

    background: #f5f7f6;

    color: #111827;
}


/* =========================
   PÁGINA DE LOGIN
========================= */

.login-page {
    min-height: 100vh;

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

    padding: 24px;
}


/* =========================
   CARD
========================= */

.login-container {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    padding: 42px 40px 36px;

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.07),
        0 3px 10px rgba(0, 0, 0, 0.03);
}


/* =========================
   LOGO
========================= */

.login-brand {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    margin-bottom: 34px;
}

.login-logo {
    display: block;

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

    height: auto;

    object-fit: contain;
}

.system-name {
    display: block;

    margin-top: 9px;

    font-size: 12px;
    font-weight: 500;

    color: #6b7280;
}


/* =========================
   BEM-VINDO
========================= */

.login-header {
    width: 100%;

    text-align: center;

    margin-bottom: 32px;
}

.login-header h1 {
    margin: 0;

    font-size: 32px;
    font-weight: 700;

    letter-spacing: -1px;

    color: #111827;
}

.login-header p {
    margin-top: 9px;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.5;

    color: #6b7280;
}


/* =========================
   FORMULÁRIO
========================= */

.login-form {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 20px;
}


/* =========================
   CAMPOS
========================= */

.form-group {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;

    color: #374151;
}

.form-group input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: #ffffff;

    color: #111827;

    font-family: 'Inter', sans-serif;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:hover {
    border-color: #9ca3af;
}

.form-group input:focus {
    border-color: #059669;

    box-shadow:
        0 0 0 3px rgba(5, 150, 105, 0.12);
}


/* =========================
   CAMPO SENHA
========================= */

.password-container {
    width: 100%;

    position: relative;
}

.password-container input {
    padding-right: 50px;
}

.password-button {
    position: absolute;

    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: #6b7280;

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

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.password-button:hover {
    background: #f3f4f6;

    color: #111827;
}


/* =========================
   LEMBRAR E-MAIL
========================= */

.login-options {
    width: 100%;

    display: flex;
    align-items: center;
}

.remember-email {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 13px;
    font-weight: 500;

    color: #6b7280;

    cursor: pointer;
}

.remember-email input {
    width: 16px;
    height: 16px;

    cursor: pointer;

    accent-color: #059669;
}


/* =========================
   BOTÃO ENTRAR
========================= */

.login-button {
    width: 100%;
    height: 48px;

    border: none;
    border-radius: 10px;

    background: #059669;

    color: #ffffff;

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    background: #047857;

    box-shadow:
        0 8px 18px rgba(5, 150, 105, 0.18);
}

.login-button:active {
    transform: scale(0.99);
}


/* =========================
   MENSAGENS
========================= */

.login-message {
    min-height: 18px;

    margin: 0;

    text-align: center;

    font-size: 12px;
    font-weight: 500;
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 520px) {

    .login-page {
        padding: 16px;
    }

    .login-container {
        padding: 34px 22px 28px;

        border-radius: 16px;
    }

    .login-logo {
        width: 150px;
    }

    .login-header h1 {
        font-size: 28px;
    }
}