/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Contenedor formulario */
form#loginForm {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    max-width: 380px;
    width: 90%;
    box-sizing: border-box;
    text-align: center;
}

/* Logo */
form#loginForm img {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

/* Títulos */
form#loginForm h1 {
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0 0 6px 0;
    color: #006666;
    line-height: 1.2;
}

form#loginForm h2 {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 10px 0 20px 0;
    color: #004d4d;
}

/* Labels */
form#loginForm label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
    color: #004d4d;
    text-align: left;
}

/* Inputs */
form#loginForm input[type="email"],
form#loginForm input[type="password"] {
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1.8px solid #008080;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form#loginForm input[type="email"]:focus,
form#loginForm input[type="password"]:focus {
    border-color: #20b2aa;
    outline: none;
}

/* Mensaje */
form#loginForm #message {
    margin-top: 15px;
    font-weight: 600;
    color: #b22222;
    text-align: center;
    min-height: 20px;
}

/* Botones */
form#loginForm .botones {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

form#loginForm button {
    flex: 1 1 45%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

form#loginForm button[type="submit"] {
    background-color: #008080;
}

form#loginForm button[type="submit"]:hover {
    background-color: #006666;
}

form#loginForm button#registerBtn {
    background-color: #20b2aa;
}

form#loginForm button#registerBtn:hover {
    background-color: #168f8f;
}

/* Grupo de input con ícono */
.input-group {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 400px;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 2px solid teal;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.password-container {
    display: flex;
    gap: 6px;
    width: 100%;
}

.password-container input {
    height: 36px;
    font-size: 16px;
    padding: 0 10px;
    border: 2px solid teal;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    flex: 1;
    line-height: 36px;
    min-width: 0; /* Evita que se desborde si el contenedor es muy pequeño */
}

.password-container button {
    height: 36px !important;
    width: 36px !important;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border: none;
    background-color: #20b2aa;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.password-container button i {
    pointer-events: none;
    font-size: 16px;
}

/* Footer */
.footer {
    width: 100vw;
    background-color: #000;
    color: #fff;
    font-size: 0.85rem;
    padding: 10px 0;
    text-align: center;
    font-weight: 300;
    border-top: 2px solid #444;
    margin-top: auto;
}

.footer-content {
    max-width: 100%;
    padding: 0 20px;
}

/* Media Queries para móviles */
@media (max-width: 480px) {
    form#loginForm {
        padding: 20px 20px;
        padding-bottom: 30px;
    }

    form#loginForm h1 {
        font-size: 1.4rem;
    }

    form#loginForm h2 {
        font-size: 1.1rem;
    }

    form#loginForm .botones {
        flex-direction: column;
    }

    form#loginForm button {
        width: 100%;
    }

    .footer {
        font-size: 0.75rem;
        padding: 8px 0;
    }
}