/* Arquivo: assets/css/login.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.login-header h1 {
    color: #10B981; /* Verde Orixi */
    font-size: 2.5em;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.login-header p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95em;
    line-height: 1.4;
}

.msg-erro {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #fca5a5;
}

/* =========================================
   CAMPOS DE TEXTO E ÍCONES (CORRIGIDO)
========================================= */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

/* O sinal ">" garante que apenas o ícone solto (Cadeado/Envelope) vá para a esquerda */
.input-group > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%); /* Centraliza o ícone verticalmente */
    color: #9ca3af;
    font-size: 1.1em;
    pointer-events: none; /* Impede que o ícone bloqueie o clique no input */
}

.input-group input {
    width: 100%;
    padding: 15px 45px 15px 45px; /* 45px de espaço na ESQUERDA e DIREITA para os ícones */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.input-group input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    background-color: #fff;
}

/* Botão de mostrar senha */
#btn-toggle-senha {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); /* Centraliza o olho verticalmente */
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.1em;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-toggle-senha:hover {
    color: #4b5563;
}

/* =========================================
   BOTÃO DE LOGIN E RODAPÉ
========================================= */
.btn-login {
    width: 100%;
    padding: 15px;
    background: #10B981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-login:hover {
    background: #0e9f6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.rodape {
    margin-top: 25px;
    font-size: 0.9em;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.rodape a {
    color: #10B981;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.rodape a:hover {
    color: #047857;
    text-decoration: underline;
}