/* FORMULARIOS DE AUTENTICACIÓN (Login, Reset, etc.) */
.auth-form {
    margin: 0 auto;
    max-width: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 40px;
}

.auth-form-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--color-primary, #CCA43B);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 750;
}

.auth-form-description {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-light, #6c757d);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

/* CONTENEDOR PARA INPUTS CON ICONO (reutilizable) */
.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;

}

.input-wrapper input[type="text"],
.input-wrapper input[type="password"],
.input-wrapper input[type="email"] {
    width: 100%;
    padding: 0.5rem 1.5rem 0.5rem 2.5rem; /* espacio para el icono a la izquierda */
    border: 1px solid var(--color-border, #d4d4d4);
    border-radius: var(--border-radius, 8px);
    font-size: 1rem;
    font-family: 'DM Sans', Arial, sans-serif;
    background: #fff;
    box-sizing: border-box;
}


/* Old
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}
*/

.input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    color: var(--color-secondary-lighter1);
    font-size: 1rem;
    pointer-events: none;
}

/* BOTÓN PRINCIPAL */
.auth-form button.btn-main {
    align-self: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius, 8px);
    font-weight: 600;
    font-size: 1rem;
    background-color: var(--color-secondary, #CCA43B);
    color: white;
    border: none;
    cursor: pointer;
}

.auth-form button.btn-main:hover {
    background-color: var(--color-secondary-light, #A67A2B);
}

/* Mostrar/Ocultar contraseña */
.toggle-password {
    position: absolute;
    right: 0.7rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #8a8a8a;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.toggle-password:focus {
    outline: none;
}

/* Foco en input */
.auth-form input:focus {
    border-color: var(--color-primary, #CCA43B);
    outline: none;
}


/* Inputs and selects share the main font and spacing so text doesn't sit under the icon */
.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.55rem 0.9rem;
    padding-left: 15px; /* space for the icon */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.98rem;
    color: var(--color-text);
    background: #ffffff;
    box-sizing: border-box;
}

/* Make select arrows consistent and avoid default arrow overlapping the icon */
.input-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* custom arrow as inline SVG; color uses a muted text color */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'><path fill='%236c757d' d='M6 7L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 7px;
    padding-right: 44px; /* room for the arrow */
}
.input-wrapper select::-ms-expand {
    display: none;
}

/* Ensure select placeholder inherits font color slightly muted */
.input-wrapper select option[disabled] {
    color: var(--color-text-light);
}

.input-wrapper label{
    margin-top: 50px;
}

/* Utility classes for form action layout in auth forms */
.form-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.form-actions--space-between {
    justify-content: space-between;
}
.form-actions--right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}
.center-note {
    text-align: center;
    margin-top: 0.6rem;
}

/* Observer entry box */
.observer-box {
    max-width: 320px;
    margin: 0 auto;
    margin-top: 1.2rem;
}
.observer-row {
    display: flex;
    gap: .5rem;
    align-items: center;
}
.observer-box .form-control {
    width: 100%;
    padding-left: 12px;
}