/* static/css/auth.css */

/* --- Estilo Base da Página --- */
body.auth-page {
    background-color: #111; /* Fundo preto padrão */
    color: #e0e0e0;
    font-family: 'Montserrat', 'Roboto', 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
}

body.auth-page .view.active {
    width: 100%;
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2.5rem;
}

/* --- Contêiner do Formulário --- */
.auth-container {
    background-color: #232323; /* Tom de cinza escuro do tema */
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.auth-container label {
    display: block;
    text-align: left;
    color: #d5d5d5;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.auth-container .btn-back {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: #19b6a4;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0;
}

/* --- Título --- */
.auth-container h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.auth-container h1 .color {
    color: #19b6a4; /* Azul do tema */
}

.auth-container .auth-subtitle {
    color: #aaa;
    margin-bottom: 2rem;
}

/* --- Formulário --- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    stroke: #888;
    width: 20px;
    height: 20px;
}

.form-control {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem 0 3rem; /* Espaço para o ícone */
    background-color: #1c1c1c;
    border: 1px solid #333;
    border-radius: 0.8rem;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #19b6a4;
    box-shadow: 0 0 0 3px rgba(25, 182, 164, 0.3);
}

.form-control::placeholder {
    color: #888;
}

/* --- Botão Principal --- */
.btn-auth {
    background: #19b6a4; /* Azul do tema */
    color: #fff;
    border: none;
    border-radius: 0.8rem;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    height: 3.5rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.btn-auth:hover {
    background: #1cb5e0; /* Azul mais claro no hover */
}

/* --- Links Auxiliares --- */
.auth-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-links a {
    color: #19b6a4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #1cb5e0;
}

.auth-links p {
    margin-top: 0.8rem;
    color: #aaa;
}

/* --- Toggle ver senha --- */
.input-pwd-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-pwd-wrap .form-control {
    padding-right: 3rem;
}

.btn-pwd-eye {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: #555;
    transition: color 0.2s;
    z-index: 1;
}

.btn-pwd-eye:hover,
.btn-pwd-eye.active {
    color: #19b6a4;
}

.btn-pwd-eye svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}