.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
    width: 100%;
}

.login-form__campo {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.login-form__label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--iv-text-secondary);
    margin-left: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-form__input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 52px;
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 0 1.5rem;
    transition: all 0.2s ease;
    background-color: #f1f5f9;
}

.login-form__input-wrapper--focus {
    background-color: #ffffff;
    border-color: var(--iv-primary);
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.1);
}

.login-form__input-wrapper--focus .login-form__input-icon {
    color: var(--iv-primary);
}

.login-form__input-icon {
    color: var(--iv-text-muted);
    font-size: 1.25rem;
}

.login-form__input {
    all: unset;
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

.login-form__input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.login-form__view-toggle {
    background: none;
    border: none;
    color: var(--iv-text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 0.6;
    font-size: 1.25rem;
}

.login-form__opciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.25rem;
    padding: 0 0.25rem;
}

.login-form__remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--iv-text-secondary);
    font-weight: 500;
}

.login-form__checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--iv-primary);
    cursor: pointer;
}

.login-form__forgot {
    font-size: 0.85rem;
    color: var(--iv-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.login-form__forgot:hover {
    opacity: 0.8;
}

.login-form__submit-btn {
    height: 52px;
    background-color: var(--iv-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form__submit-btn:hover:not(:disabled) {
    background-color: #0096d6;
    transform: translateY(-1px);
}

.login-form__submit-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.login-form__submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-form__submit-btn:disabled[data-cargando="true"] {
    cursor: wait;
}

.login-form__spinner {
    animation: spinner-spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .login-form {
        gap: 1rem;
    }

    .login-form__campo {
        gap: 0.5rem;
    }

    .login-form__input-wrapper {
        height: 48px;
        padding: 0 1.25rem;
    }

    .login-form__submit-btn {
        height: 48px;
        margin-top: 1rem;
    }
}