/*
 * Autor: Ednilson Devilla
 */

/* roboto-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/roboto-v48-latin-regular.woff2') format('woff2');
}

/* roboto-500 - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('./fonts/roboto-v48-latin-500.woff2') format('woff2');
}

/* roboto-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/roboto-v48-latin-700.woff2') format('woff2');
}

/* ---- RESET E CONFIGURAÇÕES GLOBAIS ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- HEADER AMARELO ---- */
.main-header {
    width: 100%;
    /* --- COR MENU LOGIN ---*/
    background-color: #ECECEC;
    padding: 10px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

/* Estilo para a imagem da logo no header */
.header-logo-img {
    height: 40px;
    /* Ajuste a altura conforme necessário */
    width: auto;
}


/* ---- CONTAINER PRINCIPAL ---- */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    flex-grow: 1;
}

/* ---- CARD DE LOGIN ---- */
.login-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 48px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Estilo para o nome do projeto no card */
.card-header .project-name {
    font-size: 28px;
    font-weight: 700;
    color: #0052cc;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 18px;
    /* Reduzido de volta */
    font-weight: 400;
    margin-bottom: 32px;
    color: #555;
}

/* ---- FORMULÁRIO E LABEL FLUTUANTE ---- */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #888;
    background-color: #fff;
    padding: 0 4px;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease-out;
}

.form-input:focus {
    outline: none;
    border-color: #3483fa;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: 0;
    font-size: 12px;
    color: #3483fa;
}

/* ---- BOTÕES ---- */
.btn {
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
    background-color: #3483fa;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2968c8;
}

.btn-secondary {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: #dae0e5;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.error-message {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #a94442;
    /* Cor do texto (vermelho escuro) */
    background-color: #f2dede;
    /* Cor do fundo (rosa claro) */
    border-color: #ebccd1;
    /* Cor da borda (vermelho claro) */
    text-align: center;
}