/* Estilos Gerais */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
}

/* --- Página de Login (index.html) --- */


.login-page {
    background-color: #ff1858;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    background-color: #ff1858;
    width: 80%;
    max-width: 300px;
    text-align: center;
    color: white;
}



.login-container h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.login-container h2 {
    font-size: 1.2em;
    font-weight: normal;
    margin-bottom: 30px;
}

#loginForm .input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* --- NOVOS ESTILOS PARA INPUTS FLOATING FILLED --- */

/* Mantém o grupo de agência/conta lado a lado */
#loginForm .input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Container para cada input/label. Essencial para o posicionamento. */
.form-control-floating {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Estilo do input "Filled" */
.form-control-floating .form-input {
    width: 100%;
    padding: 22px 15px 8px 15px;
    /* Mais padding no topo para a label flutuar */
    background-color: #ff1858;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px 6px 0 0;
    color: white;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    /* Garante que o padding não altere a largura */
}

/* Estilo da label (estado inicial, dentro do input) */
.form-control-floating label {
    position: absolute;
    top: 18px;
    left: 15px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    /* Permite clicar através da label no input */
    transition: all 0.2s ease-in-out;
}

/* Animação da Borda do Input ao focar */
.form-control-floating .form-input:focus {
    border-bottom-color: white;
}

/* A MÁGICA: Animação da Label para flutuar */
/* Ativa quando o input está focado OU quando não está mostrando o placeholder (ou seja, tem texto) */
.form-control-floating .form-input:focus+label,
.form-control-floating .form-input:not(:placeholder-shown)+label {
    top: 6px;
    font-size: 0.75em;
    color: white;
}

/* Garante que o autofill do Chrome não mude a cor do texto */
.form-control-floating input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ff1858 inset !important;
    /* Cor de fundo ligeiramente diferente para o autofill */
    -webkit-text-fill-color: white !important;
    /* Cor do texto */
}

.form-control-floating input:-webkit-autofill+label {
    top: 6px;
    font-size: 0.75em;
    color: white;
}

.titular-options {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.titular-options input[type="radio"] {
    display: none;
}

.titular-options label {
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.titular-options input[type="radio"]:checked+label {
    background-color: white;
    color: #ff1858;
}

.lembrar-conta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #ff1858;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.btn-entrar {
    width: 100%;
    padding: 18px;
    background-color: white;
    color: #ff1858;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
}

.abrir-conta {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.view-data-link {
    display: block;
    margin-top: 15px;
    color: white;
}


/* --- Página de Módulo (modulo.html) --- */
.modulo-page {
    background-color: #f4f4f4;
}

.modulo-container {
    background-color: white;
    max-width: 500px;
    margin: 40px auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modulo-header {
    text-align: center;
    padding: 25px;
}

.modulo-header h1 {
    margin: 0;
    font-size: 1.5em;
}

.modulo-header p {
    margin: 5px 0 0;
    color: #666;
}

.modulo-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.modulo-tabs a {
    flex: 1;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    color: #888;
    font-weight: bold;
    position: relative;
}

.modulo-tabs a.active {
    color: #d92323;
}

.modulo-tabs a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #d92323;
}

.modulo-content {
    padding: 30px;
    text-align: center;
}

.instrucao {
    font-size: 1.1em;
    color: #555;
    line-height: 1.5;
}

.icon-group {
    font-size: 3em;
    margin: 30px 0;
    color: #666;
}

.icon-group .fa-lock {
    margin-left: 20px;
}

.info-box {
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #5d4037;
    font-size: 0.95em;
    line-height: 1.6;
}

.info-box strong {
    color: #ef6c00;
}

/* --- Página de Dados (dados.html) --- */
.dados-page {
    background-color: #f9f9f9;
    padding: 30px;
}

.dados-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dados-container h1 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#lista-dados {
    list-style-type: decimal;
    padding-left: 20px;
}

#lista-dados li {
    background-color: #f4f4f4;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#lista-dados .delete-btn {
    background-color: #ff3b5f;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}