﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');
/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* FUNDO COM IMAGEM TRANSLÚCIDA E VIBRANTE */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Overlay em gradiente vinho semi-transparente + Imagem de fundo */
    background: linear-gradient(
        135deg, 
        rgba(75, 0, 0, 0.75), 
        rgba(139, 28, 28, 0.65)
    ), 
    url('../imgs/fundo_jpi.jpeg') no-repeat center center fixed;
    background-size: cover;
    padding: 20px;
}

/* CONTAINER PRINCIPAL */
.login-wrapper {
    width: 100%;
    max-width: 900px;
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* LADO ESQUERDO */
.login-left {
    flex: 1;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-left img {
    width: 100%;
    max-width: 260px;
    object-fit: contain;
}

/* LADO DIREITO */
.login-right {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TÍTULO */
.login-right h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #4b0000;
    text-align: center;
}

/* LABEL */
label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* INPUTS */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fafafa;
    transition: 0.25s;
}

input:focus {
    border-color: #8b1c1c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139,28,28,0.15);
    outline: none;
}

/* BOTÃO */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4b0000, #8b1c1c);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* MENSAGEM */
.msg {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.msg.erro {
    background: #ffe5e5;
    color: #8b0000;
    border: 1px solid #ffb3b3;
}

/* SENHA */
.senha-wrapper {
    position: relative;
}

.senha-wrapper input {
    padding-right: 45px;
}

.toggle-senha {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.toggle-senha:hover {
    color: #8b1c1c;
}

/* LINK */
.login-right a {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    color: #8b1c1c;
    text-decoration: none;
}

.login-right a:hover {
    text-decoration: underline;
}

/* ANIMAÇÃO SUAVE */
.login-wrapper {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= */
/* 📱 RESPONSIVIDADE MOBILE */
/* ========================= */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 420px;
    }

    .login-left {
        padding: 25px;
    }

    .login-right {
        padding: 30px;
    }

    .login-right h2 {
        font-size: 24px;
    }
}
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.015em; }
input, select, textarea, button { font-family: inherit; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
