/* =================================================================
   LOGIN CONTAINER  —  fundo com Background.png
================================================================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: url('../images/Background.png') no-repeat center center;
    background-size: cover;
}

/* =================================================================
   LOGIN CARD  —  coluna unica centralizada
================================================================= */

.login-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-card);
    box-shadow:
        0 4px 6px  rgba(0, 0, 0, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.18),
        0 40px 80px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 460px;
    padding: 44px 40px 40px;
    animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.card__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.card__logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* =================================================================
   TITULO E SUBTITULO
================================================================= */

.card__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 6px;
}

.card__subtitle {
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 28px;
}

/* =================================================================
   FORMULARIO
================================================================= */

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

/* Grupo de campo (label + input) */
.form-group {
    margin-bottom: 14px;
}

.form-group > label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* Linha label + link "esqueceu" */
.form-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.form-group__header label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Campo com icone */
.form-field {
    display: flex;
    align-items: center;
    height: 50px;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background: #FAFAFA;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 18, 18, 0.09);
    background: #ffffff;
}

.form-field__icon {
    width: 46px;
    text-align: center;
    color: #B0B7C3;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.form-field:focus-within .form-field__icon {
    color: var(--color-primary);
}

.form-field input {
    flex: 1;
    border: none;
    background: transparent;
    height: 100%;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--color-text);
    outline: none;
}

.form-field input::placeholder {
    color: #B0B7C3;
}

/* Botao toggle de senha */
.form-field__toggle {
    width: 46px;
    height: 46px;
    background: none;
    border: none;
    cursor: pointer;
    color: #B0B7C3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s;
    border-radius: 0 10px 10px 0;
}

.form-field__toggle:hover {
    color: var(--color-primary);
}

/* =================================================================
   OPCOES  (esqueceu a senha)
================================================================= */

.form-options__forgot {
    font-size: 12px;
    color: #8B1E1E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-options__forgot:hover {
    color: var(--color-primary);
}

/* =================================================================
   BOTAO LOGIN
================================================================= */

.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(180deg, #E53935 0%, #B71C1C 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(183, 28, 28, 0.30);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(183, 28, 28, 0.40);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(183, 28, 28, 0.30);
}

/* =================================================================
   MODAL RECUPERAR SENHA
================================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--color-white);
    border-radius: var(--border-radius);
    width: 420px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(16px);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
}

.modal__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 18px;
    padding: 0;
    display: flex;
    transition: color 0.2s;
}

.modal__close:hover {
    color: var(--color-primary);
}

.modal__body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal__description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal__field label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
}

.modal__field input {
    padding: 10px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-main);
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.modal__field input:focus {
    border-color: var(--color-primary);
}

.modal__feedback {
    font-size: 12px;
    min-height: 16px;
}

.modal__feedback--success { color: #2e7d32; }
.modal__feedback--error   { color: var(--color-primary); }

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid #eee;
}

.modal__btn-cancel {
    background: none;
    border: 1.5px solid #ccc;
    color: #666;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.modal__btn-cancel:hover {
    border-color: #999;
    color: #333;
}

.modal__btn-send {
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.modal__btn-send:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.modal__btn-send:disabled {
    opacity: 0.7;
    cursor: default;
}

/* =================================================================
   TOAST DE NOTIFICAÇÃO
================================================================= */

.toast {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.toast.toast--show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.toast--error   { background: linear-gradient(135deg, #E53935, #B71C1C); }
.toast--success { background: linear-gradient(135deg, #43A047, #2E7D32); }
.toast--warning { background: linear-gradient(135deg, #FB8C00, #E65100); }

.toast__icon { font-size: 16px; flex-shrink: 0; }
.toast__msg  { flex: 1; }

/* =================================================================
   HEADER COMPARTILHADO  (modules.html)
================================================================= */

.header {
    background: var(--color-white);
    padding: 10px 40px;
    border-bottom: 1px solid #ddd;
}

.header__content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo {
    height: 25px;
}

.header__title {
    font-weight: 700;
    color: var(--color-text);
    font-size: 22px;
    letter-spacing: 0.5px;
}

/* =================================================================
   FOOTER COMPARTILHADO  (modules.html)
================================================================= */

.footer {
    background: var(--color-footer);
    color: var(--color-white);
    padding: 36px 40px;
    text-align: center;
}

.footer__content p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer__copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}
