body {
    background: url(../img/gymLogin.webp) no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* oscurece */
    -webkit-backdrop-filter: blur(4px); /* Safari compatibility */
    backdrop-filter: blur(4px);        /* desenfoque */
    z-index: 0;
    pointer-events: none;
}

/* Centrado solo para el formulario */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40rem;
}

/* From Uiverse.io by Yaya12085 */
.form-container {
    width: 720px;
    border-radius: 0.75rem;
    background-color: #000000;
    padding: 2rem;
    color: rgba(243, 244, 246, 1);
    position: relative;
    z-index: 1;
}

.title {
    text-align: center;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

.form {
    margin-top: 1.5rem;
}

.input-group {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    position: relative; /* Asegura que los hijos absolutos se posicionen respecto a este contenedor */
}

.input-group label {
    display: block;
    color: rgba(156, 163, 175, 1);
    margin-bottom: 4px;
    margin-top: 5px;
}

.input-group input {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid rgba(55, 65, 81, 1);
    outline: 0;
    background-color: #000000;
    padding: 0.75rem 1rem;
    color: rgba(243, 244, 246, 1);
}

.input-group input:focus {
    border-color: #d3f349;
}

.input-group input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding-right: 2.5rem; /* Espacio para el botón del ojo */
    display: block;
}

.input-group > div[style*="position:relative;"] {
    width: 100%;
}

.input-group button[type="button"] {
    /* El botón del ojo se mantiene en la misma posición */
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.input-group input,
.input-group select {
    border-radius: 0.375rem !important;
}

.input-group select {
    width: 100%;
    border-radius: 0.375rem !important;
    border: 1px solid rgba(55, 65, 81, 1);
    outline: 0;
    background-color: #000000;
    padding: 0.75rem 1rem 0.75rem 1rem;
    color: rgba(243, 244, 246, 1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='16' height='16' viewBox='0 0 16 16' fill='gray' xmlns='http://www.w3.org/2000/svg'><path d='M4 6l4 4 4-4' stroke='gray' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2rem;
}

.input-group select:focus {
    border-color: #d3f349;
}

.forgot {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgba(156, 163, 175, 1);
    margin: 8px 0 14px 0;
}

.forgot a,
.signup a {
    color: rgba(243, 244, 246, 1);
    text-decoration: none;
    font-size: 14px;
}

.forgot a:hover,
.signup a:hover {
    text-decoration: underline #d3f349;
}

.sign {
    display: block;
    width: 100%;
    background-color: #d3f349;
    padding: 0.75rem;
    text-align: center;
    color: rgba(17, 24, 39, 1);
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
}

.social-message {
    display: flex;
    align-items: center;
    padding-top: 1rem;
}

.line {
    height: 1px;
    flex: 1 1 0%;
    background-color: rgba(55, 65, 81, 1);
}

.social-message .message {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgba(156, 163, 175, 1);
}

.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons .icon {
    border-radius: 0.125rem;
    padding: 0.75rem;
    border: none;
    background-color: transparent;
    margin-left: 8px;
    cursor: pointer;
}

.social-icons .icon svg {
    height: 1.25rem;
    width: 1.25rem;
    fill: #fff;
}

.social-icons .icon:hover svg {
    fill: #d3f349;
}

.signup {
    text-align: center;
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgba(156, 163, 175, 1);
}

/* El wrapper es bloque y al 100% */
.date-picker-wrapper {
  display: block;
  width: 100%;
  position: relative;
}

/* El input ocupa todo el ancho del wrapper */
.date-picker-wrapper input {
  width: 100%;
  padding-right: 2.5rem; /* deja espacio para el icono */
}

/* Posicionamos el botón del calendario */
.calendar-btn {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.calendar-btn svg {
  display: block;
}

.input-error {
  color: #e63946;
  font-size: 0.95em;
  margin-top: 0.2em;
  min-height: 1.2em;
}

