/* estilos.css */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    min-height: 100%;
    background-color: #f4f4f4;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding:
        calc(18px + env(safe-area-inset-top))
        calc(18px + env(safe-area-inset-right))
        calc(18px + env(safe-area-inset-bottom))
        calc(18px + env(safe-area-inset-left));
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    -webkit-text-size-adjust: 100%;
}

.login-container, .form-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h2 {
    margin-bottom: 1.5rem;
    color: #333333;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333333;
    font-weight: bold;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.error {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.success {
    color: #1f7a1f;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.helper-text {
    color: #555555;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.secondary-link {
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
}

.secondary-link:hover {
    text-decoration: underline;
}

/* Contenedor principal de contenido */
.main-content {
    margin-left: 0;
    padding: 20px;
    width: 100%;
    transition: margin-left 0.3s;
}

/* Centrar el contenedor principal */
.main-container {
    max-width: 900px;
    margin: auto; /* Centra horizontalmente */
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Opci�n para centrar verticalmente */
}

@media (max-width: 640px) {
    body {
        align-items: stretch;
    }

    .login-container,
    .form-container {
        max-width: none;
        margin: auto;
        padding: 1.5rem;
        border-radius: 16px;
    }
}
