/* 
 * Login Page Styles
 * Sistema de Certificados
 */

/* Base styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container styles */
.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 350px;
}

/* Header styles */
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

/* Input field styles - updated to ensure consistent sizing */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px; /* Reduced from 15px */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 40px; /* Fixed height for consistency */
}

/* Specific adjustment for document number and email */
#numero_documento,
#email {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

/* Button styles */
.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #45a049;
}

.login-btn:active {
    background-color: #3d8b40;
}

/* Error message styles */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    height: 164px; /* Ajustado a la altura del logo original */
    padding: 0;
}

.logo-text {
    max-width: 552px; /* Ancho máximo del logo original */
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Ajuste del contenedor principal para acomodar mejor el logo */
/* Eliminar las definiciones duplicadas y reorganizar */
.login-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 350px;
    box-sizing: border-box;
    margin: 0 auto;
}

.logo-container {
    margin: -20px -20px 20px -20px;
    width: calc(100% + 40px);
    display: block;
    position: relative;
}

.logo-text {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    transform: scale(0.7);
    transform-origin: top center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    padding: 0;
    overflow: hidden;
}

.logo-text {
    width: 350px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Ajuste del formulario para mejor espaciado */
.form-group {
    margin-bottom: 15px;
    width: 100%;
}

h1 {
    font-size: 20px;
    margin: 15px 0;
}