:root {
  --color-primary: #05467e;
  --color-accent: #3498db;
  --color-text-on-primary: #ffffff;
}
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../images/login2.png'); /* Cambia por el nombre de tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.main-container {
    background-color: rgba(255, 255, 255, 0.8); /* Fondo blanco semitransparente */
    /* padding: 20px 30px 60px 30px; */
    padding: 16px 24px 48px 24px; /* Reducido 20% */
    /* margin-top: 10px; */
    margin-top: 8px; /* Reducido 20% */
    /* border-radius: 15px; */
    border-radius: 12px; /* Reducido 20% */
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.2); /* Reducido 20% */
    width: 75%; /* Ajustado para que con la reducción interna no quede demasiado pequeño */
    /* max-width: 400px; */
    max-width: 320px; /* Reducido 20% */
    /* transform: scale(0.72); */ /* Eliminado para control más fino */
    transform-origin: center;
}

.header {
    text-align: center;
    /* margin-bottom: 15px; */
    margin-bottom: 12px; /* Reducido 20% */
    width: 100%;
}

.header h1 { /* Este estilo estaba en tu CSS pero no se aplicaba a ningún h1 en login.php, lo mantengo por si acaso */
    color: #2c3e50;
    /* font-size: 8px; */ /* Ya era muy pequeño, si fuera más grande se reduciría */
    font-size: 28px; 
    /* margin: 0 0 30px 0; */
    margin: 0 0 24px 0; /* Reducido 20% */
}

.input-group input { /* Este es más específico que el 'input' general */
    width: 100%;
    /* padding: 12px; */
    padding: 10px; /* Reducido ~20% */
    border: 1px solid #b0b0b0;
    /* border-radius: 20px; */
    border-radius: 16px; /* Reducido 20% */
    /* font-size: 16px; */
    font-size: 13px; /* Reducido ~20% */
    background-color: #f8f8f8;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    box-sizing: border-box; /* Añadido para consistencia con el input general */
}

.input-group input:focus {
    border-color: #007bff;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
    outline: none;
}

.login-container {
    background: #ffffff;
    /* padding: 15px; */
    padding: 12px; /* Reducido 20% */
    /* border-radius: 10px; */
    border-radius: 8px; /* Reducido 20% */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /* Reducido ~20% */
    width: 93%;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    /* margin-bottom: 20px; */
    margin-bottom: 16px; /* Reducido 20% */
}

.logo {
    /* max-width: 300px; */
    max-width: 240px; /* Reducido 20% */
    height: auto;
}

h2 { /* Para el h2 "Consulta de Cartera" */
    /* margin-bottom: 15px; */
    margin-bottom: 12px; /* Reducido 20% */
    color: #333333;
    /* font-size: 35px; */
    font-size: 28px; /* Reducido 20% */
}
/* Estilo para el h1 "Inicio de Sesión" si no se usa .header h1 */
.login-container h1 {
    color: #333333;
    /* font-size: 28px; */ /* Asumiendo un tamaño original, ajustarlo si era diferente */
    font-size: 22px; /* Reducido ~20% */
    margin-bottom: 12px; /* Reducido 20% de un posible 15px */
	text-align: center;
}


.input-group {
    margin-bottom: 0px; /* Ya era 0, se mantiene */
    text-align: left;
	font-size: 20px;
}

label {
    display: block;
    /* margin-top: 5px; */
    margin-top: 4px; /* Reducido 20% */
    /* margin-bottom: 5px; */
    margin-bottom: 4px; /* Reducido 20% */
    font-weight: bold;
    color: #555555;
    /* font-size: 14px; */ /* Asumiendo un tamaño original, si no, se puede agregar */
    font-size: 11px; /* Reducido 20% de un 14px */
}

/* Estilo general para input, puede ser redundante si .input-group input es suficiente */
input {
    width: 100%;
    /* padding: 20px; */ /* Esto era muy grande, usar el de .input-group input */
    /* font-size: 12px; */ /* Usar el de .input-group input */
    border: 1px solid #dddddd;
    /* border-radius: 4px; */
    border-radius: 3px; /* Reducido 20% */
    box-sizing: border-box;
}

input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 4px rgba(52, 152, 219, 0.5); /* Reducido 20% de 5px */
}

.login-button {
    width: 45%;
    /* padding: 12px; */
    padding: 10px; /* Reducido ~20% */
    background-color: #05467e;
    color: white;
    border: none;
    /* border-radius: 30px; */
    border-radius: 24px; /* Reducido 20% */
    /* font-size: 18px; */
    font-size: 14px; /* Reducido ~20% */
    cursor: pointer;
    transition: background-color 0.3s;
    /* margin-top: 10px; */
    margin-top: 8px; /* Reducido 20% */
	display: block;
    margin: 10px auto 0 auto; /* centra el botón */
}
}

.login-button:hover {
    background-color: #3498db !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Reducido ~20% */
}

.input-group input,
.login-button { 
    transition: all 0.3s ease;
}

.input-group input:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.scale-75 {
    transform: scale(0.75);
    transform-origin: center center;
}

.logo-wrapper {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-wrapper .logo {
    max-height: 80px;
    width: auto;
}
.banner-logo {
    width: 100%;
    background-color: #f4f7f8; /* o transparente si prefieres */
    text-align: center;
    padding: 8px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* efecto de sombra opcional */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
}

.banner-logo img {
    max-height: 80px;
    width: auto;
}

.btn-custom-primary {
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-text-on-primary);
  font-weight: 500;
  padding: 10px;
  border-radius: 24px;
  font-size: 14px;
  width: 45%;
  cursor: pointer;
  display: block;
  margin: 10px auto 0 auto;
  transition: all 0.3s ease;
}

.btn-custom-primary:hover,
.btn-custom-primary:focus {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-primary);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

